Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

import image from database

Hello,

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

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

no errors in console

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

import image from database

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

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

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

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

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

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

Any body answer me?

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

my problem isn't yet solved

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

import image from database

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.

Mani Maran
Posts: 0
Joined: Tue Jul 21, 2015 12:49 am

import image from database

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?

Return to “Issues”