Skip to Content
Menu
This question has been flagged
1 Reply
3826 Views
Hi ,
I'm receiving image byte from android device to my server, but unable to decode imagebyte to base64
Please suggest a best method which will fit for odoo image field.


Avatar
Discard
Best Answer

Hi,
You can convert imagebyte by using below method in odoo
 base64_img = 'ImageByteString'
 base64_img += "=" * ((4 - len(base64_img) % 4) % 4)

Now base64_img contain base64 format of image from android device
hope will help you

Avatar
Discard