kramwe
September 23, 2017, 4:14pm
1
Syntax question.
I want to send an image in base64 format through the Bubble Connector. I was told by the API vendor that
“you can upload a base 64 encoded image as long as you include the content-encoding header”.
Any idea what this means?
Specifically,
You might want to check this one.
Hokay, so, here’s what seems to be working for me:
get your file (name and data)
isolate and url encode the filename (somefile.jpg)
base64 encode the filedata
put the filename into array1[filename]
put the filedata into array1[contents]
put “false” into array1[private] (I haven’t tried making it private and attached to a database thing yet)
put that array into array2[file] (I tried changing that but the server stopped accepting it, so apparently it has to be “file”)
put anything else you need …
kramwe
January 2, 2018, 1:51pm
3
Thanks. Ended up solving this with an AWS Lambda call which afforded more flexibility than POSTing an image from the Bubble Connector directly.