diff --git a/Spectrum2/backend.py b/Spectrum2/backend.py index 2fb678b..5f6d7e2 100644 --- a/Spectrum2/backend.py +++ b/Spectrum2/backend.py @@ -70,7 +70,7 @@ class SpectrumBackend: vcard.id = ID vcard.fullname = fullName vcard.nickname = nickname - vcard.photo = photo + vcard.photo = bytes(photo) message = WRAP(vcard.SerializeToString(), protocol_pb2.WrapperMessage.TYPE_VCARD) self.send(message) @@ -223,7 +223,7 @@ class SpectrumBackend: def handleFTData(self, ftID, data): d = protocol_pb2.FileTransferData() d.ftid = ftID - d.data = data + d.data = bytes(data) message = WRAP(d.SerializeToString(), protocol_pb2.WrapperMessage.TYPE_FT_DATA); self.send(message)