fixed image display

This commit is contained in:
Andreas Preikschat 2013-03-27 10:41:01 +01:00
parent 0b2dc71f28
commit 6908577b54
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ def image_to_byte(image):
image.save(buffie, "PNG")
log.debug(u'image_to_byte - end')
# convert to base64 encoding so does not get missed!
return byte_array.toBase64()
return bytes(byte_array.toBase64()).decode('utf-8')
def create_thumb(image_path, thumb_path, return_icon=True, size=None):