Sending an Image to Backendless API


#1

HI,

I’m trying to build an app, as part of this, I need to send an image(captured from camera) to Backendless server using Backendless API.

Appreciate any help.

Thanks in advance!!


#2

@markpiller Just wondering, is there anything special when it comes to passing images to backedless? any sort of encoding?


#3

@wade, there is nothing special here, the API call is quite basic:
https://backendless.com/docs/rest/file_save_files_from_byte_arrays.html

Requests must be formatted as multipart/form-data, the file contents must be in the Base64 encoding.

Hope this helps.

Mark


#4

Perfect! Thanks for hopping in. I figured it was pretty standard business but hadn’t pushed an image to Backendless myself.

Thanks!