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))
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!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/30/13, 7:24 PM|
|Seen: 2133 times|
|Last updated: 3/16/15, 8:10 AM|