Odoo Help

0

Send image through XML-RPC

By
Khulan Batbayar
on 12/9/14, 1:17 AM 1,111 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/

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

1 follower(s)

Stats

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