Saving blob to database

Hey group!

I am working on a solution where the user can trim a pdf to be used later, however I want the file to be automated saved into bubble database, right now it generates a link like this:
blob:https://primecreator.com.br/058e6a3d-a5e3-4b82-a258-994e6ed5d223

It works for the user to download but I want it to save directly into the database…
I tried using the Bubble Uploader plugin but i think it don’t recognize blob urls, anyone has a workaround?
Thanks!

You need to convert it to Base64 and upload it using Bubble fileupload endpoint, Data or Backend API Workflow. Or just save it directly as base64 in a text field…

To do conversion I would suggest looking into using JavaScript (toolbox plugin) to transform it into base64.

If you need help creating the JavaScript, do a Google search for ’ Use AI Coding to Build Features in Bubble’.

But if someone else has direct experience with the conversion with blobs, even better.

I me doing that, but Iam worried converting to Base64 might create a bottle neck for larger files, do you think this will happen? and if so, how can I avoid it?

You can’t. Bubble only accept base64 for upload. The only other options is to use another storage solution.

When they “trim a PDF” is that a Bubble plugin or an external site?