upload base64 encoded image data
blueback09 at gmail.com
Mon Dec 19 19:42:30 EST 2016
I'm trying to connect my desktop app to my Bubble.is app. They have a way
to build APIs.
I've got text uploading working. As in, I can upload text from the desktop
and work with it in the web app.
I've also got image URLs working. As in, I can include the URL of an image
that's already hosted somewhere online and the image will be pulled into
Bubble so I can work with it.
What's not working is uploading image data from the desktop app to the web
I've formatted the body of the POST like this, which as far as I can tell
is what they want:
string of base64 encoded image data"}
Since Bubble isn't returning any errors, but also isn't putting the
uploaded image data into the database as an image, I wondered if maybe I'm
doing something wrong on the Livecode side. I used this to process the
start using stack "easyJSON"
put "C:\Users\some-image.jpg" into tFile
put URL ("binfile:" & tFile) into tImage
put base64encode(tImage) into tImage64
More information about the Use-livecode