Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
12644 Lượt xem

Hii,

Impacted Odoo Version 12.

I am imported res.users from csv file and it all created successfully instead of images. Images are on a domain and giving link in the csv like https://www.mydomain.com/pics/69584.jpg

I imported employee images the same way and done successfully. 

Same images I am trying to import for res.users but getting following errors.

Unknown error during import: <class 'binascii.Error'>: decoding with 'base64' codec failed (Error: Incorrect padding) at row 2
Resolve other errors first

Any idea what could be missing.

Thanks,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I think the data in your CSV file is not a base64 string or somehow it gets damaged. Also, check also the padding from the input string in your CSV.

For more reference goto

https://stackoverflow.com/questions/40729276/base64-incorrect-padding-error-using-python

Ảnh đại diện
Huỷ bỏ
Tác giả

Hii Hilar,

My CSV file has two columns. User External Id and Image.

Image column has data like https://www.mydomain.com/pics/69584.jpg.

Here is a video that I am following: https://www.youtube.com/watch?v=TJULSRFndeo

id image

user_234 https://www.mydomain.com/pics/69584.jpg

user_659 https://www.mydomain.com/pics/69585.jpg

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 15
4061
2
thg 5 23
6210
1
thg 3 23
2788
2
thg 7 19
6794
1
thg 4 22
4894