I want to insert a blob object (.jpg image) with Google Sheets API.
Does Google Sheets API allow for blobs inside the spreadsheet's cells?
I know that inserting the image directly into the spreadsheet by hand without using API is possible.
I want to insert a blob object (.jpg image) with Google Sheets API.
Does Google Sheets API allow for blobs inside the spreadsheet's cells?
I know that inserting the image directly into the spreadsheet by hand without using API is possible.
In the current stage, unfortunately, the image blob cannot be directly put into Google Spreadsheet using Sheets API. So, it is required to use the workarounds. In this answer, I would like to propose the 2 workarounds for achieving your goal.
In this pattern, IMAGE
of the built-in function of Google Spreadsheet is used. The flow is as follows.
=IMAGE("URL")
to a cell using Sheets API.By this flow, your goal is achieved. If you can know the direct link of the image, you can directly use only the 3rd flow of the above flow.
In this pattern, the image is inserted into the Spreadsheet using Web Apps created by Google Apps Script.
By this flow, your goal is achieved.