This question has been flagged
11522 Views

Hi everybody,

I try to print a picture in a xml file. I have a problem when i get my file.

To do that i use this code:

cr.execute('SELECT res_company.logo_web FROM res_company') res = cr.fetchall() v['logoTmp'] = base64.decodestring(str(res[0][0]))

And i have this error:

UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte

Someone know why?

Thank a lot!

Selverine

Avatar
Discard