Odoo Help

Welcome!

This community 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.

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,130 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

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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