How to convert Blob data to Base64 in Bubble Plugin?

There are times when you need to convert blob data to Base64 data. Like when you integrate this Audio library it outputs the audio data as the blob data.

However, Bubble's database doesn't support blob storage. Therefore, you must convert the blob data to Base64 format.

Below is the necessary code to accomplish this:

var reader = new FileReader();    
         reader.readAsDataURL(your_blob_data);
         reader.onloadend = function () {
                    var base64data = reader.result;

                    };

That's all for this blog. Subscribe for more future updates. Thank you!

Follow me on Twitter.

Checkout My Bubble Plugin Course - Use coupon code "THEBUBBLEGROUP" at checkout for 10% discount.

0
Subscribe to my newsletter

Read articles from Ankur Khandelwal directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ankur Khandelwal
Ankur Khandelwal