# Convert binary to base64 string to image

**URL:** <https://community.make.com/t/convert-binary-to-base64-string-to-image/9574>\
**Category:** Questions\
**Created:** [April 2, 2023, 4:42am UTC](https://community.make.com/t/convert-binary-to-base64-string-to-image/9574 "2023-04-02T04:42:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huff.ai](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@Huff.ai](https://community.make.com/u/Huff.ai)\
**Post date:** [April 2, 2023, 4:42am UTC](https://community.make.com/t/convert-binary-to-base64-string-to-image/9574/1 "2023-04-02T04:42:01Z")

</div>

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 -

 ![screenshot-us1.make.com-2023.04.02-11_27_48](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/5/5f52f0ed4aa0dbc56a2265b58f04e08e73e3035c.png)

The 1st step http API call returns a binary code -  
 ![screenshot-us1.make.com-2023.04.02-11_29_25](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/6/6d51fa5bca1dd9ee747a8daffd35a8f9be71888f.png)

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](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/9/93d6979a53fa3bb696789c5a45da9834eab5a22d.png)

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

 ![screenshot-us1.make.com-2023.04.02-11_29_58](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/1/1dfb2ddc0ffa3ff6f80b0bd68ce5d7a9737361a8.png)

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

---

<div class="post-metadata">

**Author:** ![Runcorn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/runcorn/32/9169_2.png) [@Runcorn](https://community.make.com/u/Runcorn)\
**Post date:** [April 2, 2023, 9:45am UTC](https://community.make.com/t/convert-binary-to-base64-string-to-image/9574/2 "2023-04-02T09:45:22Z")

</div>

> [@Huff.ai](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![Huff.ai](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@Huff.ai](https://community.make.com/u/Huff.ai)\
**Post date:** [April 3, 2023, 5:30am UTC](https://community.make.com/t/convert-binary-to-base64-string-to-image/9574/3 "2023-04-03T05:30:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FAQs](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@FAQs](https://community.make.com/u/FAQs)\
**Post date:** [April 7, 2023, 11:00pm UTC](https://community.make.com/t/convert-binary-to-base64-string-to-image/9574/4 "2023-04-07T23:00:10Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


