I’m getting a base64 data:image from a webhook and want to upload it to Google Drive to generate a shareable link for my CRM

Hey everyone, I need help.

I have a webhook that gives me a data:image in base64 format.

I want to upload it to Google Drive, so I can create a shareable link and use that link in my CRM.

I’ve already tried a lot, but the preview doesn’t work in Google Drive, and also the link doesn’t show the image properly in the CRM.

Does anyone have an idea how to fix this?

Use the Base64 Decode tool to convert the string to binary.
Make sure your Input is the Base64 string
Add a Google Drive Upload a File module:
Set Destination Folder in your Drive, Set File Name, In File Content, use output from the Base64 Decode module.
Add a Google Drive Share a File module.
Input: File ID from the Upload step.
Set Sharing Type: Anyone with the link.
Add a module to send or share the link with your CRM (e.g., webhook, HTTP request, or CRM integration).
Test the flow by triggering the webhook again.

Thanks for your quick reply… I cant find the base64 decode tool.

Here, it’s a function

ok for my understanding… after my webhook I add a set variable module with the base64 function?

That would work…
Try it and let’s see what happens

1 Like


Okay, I tried it, but the file still isn’t showing up in Google.

In the first screenshot - that’s just text, its not doing anything. Select the replace() function from the box instead. Also if you want to delete something, then you need to replace it with {{emptystring}} the double quotation marks with nothing between them wont work.

In the second screenshot - it should be without the quotation marks.

changed but doesnt work.



Can you also show the inputs/outputs of the modules?


The tools module doesn’t seem to have done anything. Can you copy the input bundle and paste it here so we can test as well?

THe data:image is too long. Check here: JSON Blob | 1379771418463625216

Yeah you need to replace it with {{emptystring}}, “” doesnt do anything. Here is the full formula:

{{toBinary(replace(1.value; "data:image/png;base64, "; emptystring); "base64")}}

Did it. But same issue. In Google drive is the preview no available.

Try this one:

{{toBinary(get(split("map data here"; ","); 2); "base64")}}
Replace “map data here” with your base64 variable

1 Like

Thank you this one works.

1 Like