Page 1 of 1

Retrieving a file from database

Posted: Wed Aug 07, 2013 7:10 pm
by vipul

On a page load I need to show a person details in a grid
like Name Address and Its Image

Name and Address i am retrieving from Person Collection.

Person's Image i have stored in files table like PersonName.jpeg.
Now to retrieve this file i am creating a RestService with
FileName as request parameter but I am not able to set Response Parameter.

Also If there is any other way to get that image on page load pls let me know..!!!


Retrieving a file from database

Posted: Wed Aug 07, 2013 7:35 pm
by Oleg Danchenkov

If you upload your files via Files API you can use direct link to file http://docs.appery.io/documentation/b...
You can use this direct link as scr parameter of image.