Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

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

My app is able to access my database, except for the corresponding image. It shows a broken link symbol when it gets the picture. I wonder if i have the incorrect URL? I'm using the Tiggzi database.

In the data mapping, the url is mapped to the asset of an image. The url i'm testing with is: https://api.tiggzi.com/rest/1/db/file...

the url i got from the database panel: https://api.tiggzi.com/rest/1/db/files/
the file name listed in the DB:1efcadcf-dfb6-4bb0-8516-c507909e81c8.Amethyst.gif
The file i uploaded: Amethyst.gif

What do you think?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello! To get it working you should pass the Database Id parameter (X-Tiggzi-Database-Id) as header. You also need to send X-Tiggzi-Session-Token header.

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

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

It still doesn't work. here's my screenshots:

Image

Image

What do you think?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

Session token is different from database id. You get a session token when a user logs in: http://help.gotiggr.com/getting-start...

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

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

OK, that tutorial helped. I created my REST service automatically with Create New Database Services. It looks good.

Image

It still loads everything except the image from the tiggzi database.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

Do you also read the image as binary? It shows how to do it at the very end of the tutorial: http://help.gotiggr.com/getting-start...

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

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

Yes, I set it to read the binary. And I invoke the service with Page Show.

Here are the screenshots:
Image

Image

Image

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

Should base64data be inside the array?

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

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

I don't know. I'm just following the tutorial, which made it look seperate from the array. I can try adding it to the array.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

How does your URL look? To get an email, it has to be URL in this format:
]https://api.tiggzi.com/rest/1/db/file...

Return to “Issues”