With php I can simply write a short snippet to receive an image. Like this:
So my question is, does anyone know how to get this functionality with a SQLAnywhere webservice? How can I access Http variables like the $_FILES (php)?
I want to send a captured image from an android device to a SQLAnywhere webservice.
Thanks for your help! Regards
asked 08 Jun '16, 11:23
Please see the example called "gallery.sql" that comes with the SQL Anyhere install.
The basic idea is that you can get all of the information that you need from the POST request to the server by using the HTTP_VARIABLE() function.
An excerpt from the gallery.sql example:
The v_name variable contains the file name that was uploaded and v_image contains the actual image content.
The post_data.sql and put_data.sql examples may also be of some help.