Gail5575107
Posts: 0
Joined: Fri Feb 22, 2013 6:18 pm

Displaying images retrieved from the database

Hello , I have recently started using tiggzi and I very enthusiastic about it.

I am currently experimenting with pictures and Images. Following the relevant tutorials, I have been sucessful at taking pictures and uploading them to the database.

Problem: Pictures that are retrieved from the database cannot be displayed in Image assets. Is there a validated way to do that?

I have replicated the following:
http://docs.tiggzi.com/tutorials/uplo...
https://getsatisfaction.com/tiggzi/to...
https://getsatisfaction.com/tiggzi/to...

All the functions are successful, except the displaying of retrieved images.

My test Projects can be seen here:
http://project.tiggzi.com/project/184...

I would be very glad if you could enlighten me.

Cheers.

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

Displaying images retrieved from the database

What image URL do you get from the database?

Gail5575107
Posts: 0
Joined: Fri Feb 22, 2013 6:18 pm

Displaying images retrieved from the database

Here is the URL of the Image that I try to Display:

https://api.tiggzi.com/rest/1/db/file...

A service is set up to retrieve it from the database. When I test the service it shows that the file is returned:

Response:
{
"base64data":....
}

Furthermore, I have added the following code to the Image asset:

return "data:image/jpeg;base64,"+value;

However, the image asset linked to the Response still Shows "No Image".

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

Displaying images retrieved from the database

Try mapping directly, without JS in mapping.

Gail5575107
Posts: 0
Joined: Fri Feb 22, 2013 6:18 pm

Displaying images retrieved from the database

That did not work either. I will rebuild my app from scratch just to make sure I am not doing anything wrong. I might be overlooking something since apparently I am the only one currently complaining about this.

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

Displaying images retrieved from the database

Hello! It's a bug.

Gail5575107
Posts: 0
Joined: Fri Feb 22, 2013 6:18 pm

Displaying images retrieved from the database

Ok thanks. Please notify me when you guys get the chance to fix it.

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

Displaying images retrieved from the database

It's going to be fixed in the end of March

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Displaying images retrieved from the database

Has this been fixed yet?

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

Displaying images retrieved from the database

Mid-April -- is our next (big) update.

Return to “Issues”