Convert binary to base64 string to image

I am making an API call to an image provider that returns a binary string, I then want to convert that to a base64 and then download that as an image.

Here is my workflow -

The 1st step http API call returns a binary code -
screenshot-us1.make.com-2023.04.02-11_29_25

The 2nd step I convert it to a base64 (This is returning a correct result as I have checked the image in a base64 image display) -
screenshot-us1.make.com-2023.04.02-11_29_40

The 3rd step I am trying to download the image to Drive -

The 3rd step is failing, I am not getting them returned

What are you getting in 3rd step? It seems like the data is uploaded properly to Google Drive. Can you access the image in GDrive and see if the image is rendered correctly there?

1 Like

I resolved the issue. I kept the data as binary. However, Google Drive doesn’t display the image and is causing issues downloading into airtable. I can only view the image if I download it to my computer.

I am getting a better result uploading the image to Dropbox.

1 Like