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

Send image through XML-RPC

By
Khulan Batbayar
on 12/9/14, 1:17 AM 945 views

Hello everybody,

Do you guys know how to upload image from PHP to OpenERP?

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 12/9/14, 2:33 AM

On the database level, the image is just a huge string of base64 encoded information. Use the PHP equivalent of the python base64 to encode your image and then send it as you would any other variable.

This is what that looks like in python:

http://www.programcreek.com/2013/09/convert-image-to-string-in-python/

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

1 follower(s)

Stats

Asked: 12/9/14, 1:17 AM
Seen: 945 times
Last updated: 3/16/15, 8:10 AM