adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

I have followed the documentation for the direct file download. I tested the service it test successful but I'm not sure how I can get a response from the service and tied that response to a image component. Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How do I get image from the file database?

Hello,

Did you follow this tutorial http://docs.appery.io/tutorials/uploa... ?

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

Thank you. I didnt see this. I will check this out

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

I tried the tutorial, I'm still not getting a response, I added an alert and its not alerting on response.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How do I get image from the file database?

Please check that you use correct service settings.
http://docs.appery.io/documentation/b...
Service URL must be the next:
pre
https://api.appery.io/rest/1/db/files/[fileName]
/pre

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

I have that but how can I set up the response so I can map it to an image component.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

From the picture above you can see I got the request and url working. I need help setting up the response part so I take the retrieved data and set it to display in an image component when I invoke services during page load.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I get image from the file database?

I looked at this. I still do not understand it. Can you explain what I need to do?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do I get image from the file database?

Adam,

Request parameters are: 'X-Appery-Database-Id', 'X-Appery-Session-Token' and 'encoded'. Add response parameter 'base64data' manually and then map data as you need.

Return to “Issues”