Page 2 of 2

app is able to access my database, except for the corresponding image

Posted: Mon Sep 17, 2012 11:24 pm
by Mike4997955

The url is correct. I pasted it above.


app is able to access my database, except for the corresponding image

Posted: Mon Sep 17, 2012 11:31 pm
by maxkatz

To get the image, you would need to make a GET request to this URL:
https://api.tiggzi.com/rest/1/db/file...


app is able to access my database, except for the corresponding image

Posted: Tue Sep 18, 2012 1:57 am
by Mike4997955

Now i'm confused. I thought i needed to map the base64 formatted file to the image asset. DO i need to make an additional request? How would i do that?

Originally i mapped the image asset to that URL, and it didn't work.


app is able to access my database, except for the corresponding image

Posted: Tue Sep 18, 2012 2:43 am
by maxkatz

What URL do you have in REST Service Properties panel?


app is able to access my database, except for the corresponding image

Posted: Tue Sep 18, 2012 3:17 pm
by Mike4997955

{database_url}/collections/Healing


app is able to access my database, except for the corresponding image

Posted: Tue Sep 18, 2012 5:58 pm
by maxkatz

That URL is accessing a different collection, not the File collection. To get the image, you need to make a request to this URL: https://api.tiggzi.com/rest/1/db/file...


app is able to access my database, except for the corresponding image

Posted: Tue Sep 18, 2012 7:29 pm
by Mike4997955

OK, now i understand. The file is a separate collection. Thank you!