I would like to know if it possible to concert bytea picture into binary. I take the bytea into a field of the database and i want to "put" it into a binary field like this:
cr.execute('SELECT res_company.logo_web FROM res_company') res = cr.fetchall() v['logo_Print'] =base64.decodestring(str(res))
But doesn't work.
Someone have some idea, please? How is possible to concert my "tuple" into a string and after binary?
Thanks 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/9/13, 6:37 PM|
|Seen: 2164 times|
|Last updated: 3/16/15, 8:10 AM|