Odoo Help

0

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

By
Selverine
on 9/30/13, 7:24 PM 2,675 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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 9/30/13, 7:24 PM
Seen: 2675 times
Last updated: 3/16/15, 8:10 AM