Converts the given bytes representation to resource data.

def data_from_bytes(self, byte_representation):
        """
        Converts the given bytes representation to resource data.
        """
        text = byte_representation.decode(self.encoding)
        return self.data_from_string(text)