I thought this would be quite straightforward, but I’m having mixed results when working with images and outputting base64.
This is what I’m trying to do - the user uploads an image, bubble should encode this into base64. I’ve used the operator built into bubble, but the base64 output is only a few lines vs the hundreds of lines I’m expecting. Not sure what is going on there. It doesn’t generate the image at all.
I’ve used a plugin called “file to base64” which works, but it precedes each base64 with “data:image/png"base64” which doesn’t work with my API endpoint - I need to format this differently. Instead I want to remove this prefix and add my own. I’ve tried using the find and replace in the workflow, but then for some reason the entire base64 string disappears.
My options are:
- Either use bubble’s in-built base64 encoder but find a solutions as to why the actual output is incomplete (maybe I’m not doing it right?), or
- Find another way to remove this prefix that doesn’t disturb the saving of the entire string.
Any other options appreciated!