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

Hi All,

I am trying to import many contacts on odoo online and was wondering how i can import their images too with their contacts. I am aware of contact import, want to understand the images import. Any suggestions will greatly help.

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

If you have your contact base in a Google Sheet with their images, you can convert these images to base64 using Google Apps Script. Here's a step-by-step guide on how to do it:

  1. Open your Google Sheet and click on Extensions > Apps Script

Could you create a Google Apps Script that converts images in a Google Sheet to base64? The images are stored as URLs in a specific column, and I want the base64 encoded strings to be saved in the next column.

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

Hello Durga,


    Odoo supports base64 for encoding or decoding image.

    

    Base64 is a method of encoding binary data, such as images, into a text string that can be easily 

    included in text-based formats like JSON, XML, or even a spreadsheet.

    

    So, before importing you have to convert your image to base64 format.

    After that you can import an image too with other data.

    

    Hope this helps.

    

    If you need any help in customization feel free to contact us.

        

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 25
451
1
thg 5 25
2046
1
thg 3 25
2044
MERGING CONTACTS Đã xử lý
1
thg 2 25
8322
Use of external id Đã xử lý
2
thg 2 25
4406