How to convert base64 string to binary-file and store on sftp

Hey to all you Makers,

So I ask my self how to convert base64 string to binary-file and store on sftp.

I tried it like so. But for some reason the image finally is broken so you can not open.
What ist the problem?

Thanks for you support

Cahore

Hi @cahore,

You would need to add a secondary parameter to the function.

toBinary(<base64 data>; base64)

So you mean like this?

But its still not working but it feels much closer :slight_smile:

Hi. Be sure your final base64 starts with data:image/png;base64,…

If you need additional support, please don’t hesitate to reach out.

Cheers
//HFBR

@cahore No you have to add it to the toBinary() function like I explained:

What do you mean with this? This is not related right now.

Show me the result for you base64

If you need additional support, please don’t hesitate to reach out.

Cheers
//HFBR

Thanks a lot. Its working
:smiling_face_with_three_hearts:

I have a similar issue with an image data:image/png;base64,

I follow base64 function as explained but still, the image in dropbox is broken. Any other steps to follow?

Hi @Will2 ,
That doesn’t look the correct value to use. A signature is most of the time only a value to identify the file is correct. You need to search for the actual data value.

I’ve the same issue. I’m trying to convert a existing base64 "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA... onto image.

I did the same thing above.

HTTP > Parse > Variable ({{toBinary(10.value; “base64”)}}) > Google Drive

The image come broken.

Try removing the data:image/png;base64 from the String. It should work after that.

ezgif.com-video-to-gif (1)

Works Perfectly! Thank you very much!