Templates Plugins Courses

Need help Sending Binary Data to API

I want to send a binary date to api, but bubble don’t recognize binary date.

I found the question like this (https://forum.bubble.io/t/sending-binary-data/98657) in bubble forum, but is it impossible to upload binary to api even if I use File Converter plugin?(https://bubble.io/plugin/file-converter---binary-or-base64-1512728914327x998795133796483100)

Hi @takashi,

Thanks for reaching out. Please let us check on it and get back to you asap!


Hi @alexandru.rusnac ,

Thank you for your support!

1 Like

Hi @takashi,

We investigated this question with our developer as well, and yes - it is doable even with our plugin. The main idea is that your API call needs to be set up properly, but the binary conversion is easily handled even by our plugin, whether it is encoding or decoding.

Let me provide an example.

First, you need to create an object in your database which contains a text field to store your binary data:

Then you can use our demo page to convert your text file into a binary, and save the resulted binary into created table:

And the next thing is setting up the API call itself:

Here we are using a JSON example of text just for testing purposes.

Then use the plugin with newly created API call to get results from:

And workflow action as well, on page load for example:

And if you want to preview the results back as decoded (your original JSON file), just use plugin’s state into a text element:

Hope it helps!

1 Like

Thank you for your answer!
I bought this plugin!

I would like to run a curl command like this:

curl -X PUT
-H “Content-MD5: <calculated contentMd5 value>”
-T ‘sample.jpg’
‘<uploadUrl value>’

The binary data corresponding to “sample.jpg” was obtained as text by using the plugin, but what should I do to execute the above curl command through the API connector?


Hi @takashi,

Thanks for confirming you are able to obtain data from our plugin! Sorry, the reference is in Japanese, but you can check this link https://manual.bubble.io/building-plugins/adding-api-connections and perhaps this video https://www.youtube.com/watch?v=qJg2DzquPdw&ab_channel=EvanLittle that shall help.

If you need more Bubble help, it is best to post the request here https://forum.bubble.io/.

Thank you :pray:

Hi @alexandru.rusnac,

Thank you for your reply !

I understand that I will contact the bubble forum regarding API processing.

But I have another problem about plugin🙏
I want to hash-convert video data using MD5 and encode it with base64.

I’m trying to do it as shown in the picture, but I can’t get the correct value.
What is the cause?

Hi @takashi,

Thanks for screenshots!

Unfortunately, this plugin can convert only text files. So if your workflow with MD5 depends on previous binary extracted from a file uploaded, it needs to be a text file. It is not possible to work with video ones I’m afraid.

Hi @alexandru.rusnac,

Ok, I got it. Thank you for the commentary!

1 Like

Thanks @takashi,

Just asking if you like our plugin so far, could you please rate it by going to Plugins tab in Bubble editor? You can find the plugin by name and give it as many stars as it deserves. The more feedback we get, the more motivated we are to build great plugins :smiley:


1 Like

Hi, @alexandru.rusnac
Thank you for answering about the plugin before!

Next, I would like to ask you a question. How much does it cost to request the development of a plug-in that solves the following questions?