Page 1 of 2

import image from database

Posted: Fri Aug 07, 2015 2:53 pm
by Mani Maran

I like to import image from database to my app and what i did, first i placed a list in app page then created database services i selected a list service and i imported it then inside data tab restservice created and get into success mapping service (image 1) and i selected pageshow invoked service on the app page through events tab everything perfectly then tested the app. image isn't showing, looks like images are broken (image2)what i missed and what do i want to do? (image 3) database Image Image Image


import image from database

Posted: Fri Aug 07, 2015 7:00 pm
by Serhii Kulibaba

Hello,

Could you check are there any errors in console? This (http://devcenter.appery.io/documentat...) should help.


import image from database

Posted: Fri Aug 07, 2015 8:28 pm
by Mani Maran

no errors in console


import image from database

Posted: Fri Aug 07, 2015 10:32 pm
by Illya Stepanov

Inspect your service response in network tab developer tools in browser.


import image from database

Posted: Fri Aug 07, 2015 10:38 pm
by Mani Maran

i'm using chrome and i checked via developer tools url of the image is present! or any steps i left out?


import image from database

Posted: Fri Aug 07, 2015 10:52 pm
by Mani Maran

i tested the db list service settings under test tab shows it works perfectly Image


import image from database

Posted: Sat Aug 08, 2015 10:41 am
by Mani Maran

Any body answer me?


import image from database

Posted: Sat Aug 08, 2015 1:36 pm
by Mani Maran

my problem isn't yet solved


import image from database

Posted: Sat Aug 08, 2015 9:06 pm
by Illya Stepanov

These files that you have uploaded into your custom collection are also represented now inside your Files collection.

So you need to get a Direct link to your files inside your mappings following way:

precode
return "https://api.appery.io/rest/1/db/files/529e765880953/" + value;
/code/pre

where '529e765880953' is your database ID.


import image from database

Posted: Sun Aug 09, 2015 11:09 am
by Mani Maran

just to make sure where do i wanna paste these JS lines wheather on image or list because that's a thumbnail of the list, and there is no page show event in event tab if i select list or list item?