The uploadBinaryHelper helps with uploading binary files. The Picture Upload sample app shows how to use this function.
The function has the following parameters:
An Appery.io REST service instance with POST method to create a file in Files collection.
A base64 string of the image.
A name with which file will be stored. If empty, current date will be used as name.
Image format as .jpg or .png. If empty .jpg is used.
In the following example web_upload is the name of a service instance on a page, and image_base64 is a local storage variable that stores the image in base64 format.