Page 1 of 1

Profile Image Upload to external database

Posted: Fri Feb 21, 2014 1:42 pm
by Ankur Wadhawan

Hi
In my application I am giving the option to the user to select a profile image.. I am able to make a camera service which brings the image from the gallery. As mentioned in the following example:
http://docs.appery.io/tutorials/using...

I was wondering about the next step. That is, How can I upload the image (file transfer) to an external directory and database, that happens when the user presses the update profile button.

your example shows uploading to Appery database, can you help on how one can do so to an external database and directory. I am using ajax post to submit the rest of the form.

thx.


Profile Image Upload to external database

Posted: Fri Feb 21, 2014 3:16 pm
by Kateryna Grynko

Hi Ankur,

In section "Binding the camera service" of this tutorial, paragraph 5, you can save a photo in a variable instead of mapping to Image. Then send this variable to your server using another service.


Profile Image Upload to external database

Posted: Fri Feb 21, 2014 6:37 pm
by Ankur Wadhawan

can it only be send via a service.. or one could use jquery ajax ..?


Profile Image Upload to external database

Posted: Sat Feb 22, 2014 2:00 pm
by Alena Prykhodko

You can use anything from jQuery Mobile.