Page 1 of 2

Displaying images retrieved from the database

Posted: Fri Feb 22, 2013 6:56 pm
by Gail5575107

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.


Displaying images retrieved from the database

Posted: Fri Feb 22, 2013 7:27 pm
by maxkatz

What image URL do you get from the database?


Displaying images retrieved from the database

Posted: Fri Feb 22, 2013 8:39 pm
by Gail5575107

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".


Displaying images retrieved from the database

Posted: Sat Feb 23, 2013 4:06 am
by maxkatz

Try mapping directly, without JS in mapping.


Displaying images retrieved from the database

Posted: Mon Feb 25, 2013 8:56 am
by Gail5575107

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.


Displaying images retrieved from the database

Posted: Mon Feb 25, 2013 9:46 am
by Maryna Brodina

Hello! It's a bug.


Displaying images retrieved from the database

Posted: Mon Feb 25, 2013 3:38 pm
by Gail5575107

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


Displaying images retrieved from the database

Posted: Mon Feb 25, 2013 4:00 pm
by Maryna Brodina

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


Displaying images retrieved from the database

Posted: Sat Mar 30, 2013 9:07 pm
by Dupdroid

Has this been fixed yet?


Displaying images retrieved from the database

Posted: Sun Mar 31, 2013 12:31 am
by maxkatz

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