i download product details from openerp. In that csv file i get image in binary format. When i try to upload data again some of the rows showing padding error ( Incorrect padding ). How to s solve this issue?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
When exporting images directly from PostgreSQL, convert PostgreSQL's bytea format to base64 using the following in the query:
select encode("product_product"."image",'base64') as "image" from "product_product";
Using .decode('base64') in Python will not work because the data first needs to be decoded from PostgreSQL's bytea format.
See also https://www.odoo.com/forum/help-1/question/export-external-id-directly-from-database-67297
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
1
bře 18
|
3552 | ||
|
1
bře 16
|
3475 | ||
|
2
bře 15
|
10915 | ||
|
1
bře 15
|
9104 | ||
|
0
úno 23
|
2403 |
its a base64 decode error. i try to decode binary image value to .decode('base64') it show same error. how to solve this ?