fix set avatar in remote control

This commit is contained in:
Denis Fomin 2013-01-03 17:03:40 +04:00
parent 3911c72ba9
commit 1202d79a3c
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ class SignalObject(dbus.service.Object):
if not invalid_file and filesize < 16384:
fd = open(picture, 'rb')
data = fd.read()
avatar = base64.b64encode(data.encode('utf-8')).decode('utf-8')
avatar = base64.b64encode(data).decode('utf-8')
avatar_mime_type = mimetypes.guess_type(picture)[0]
vcard={}
vcard['PHOTO'] = {'BINVAL': avatar}