Page 1 of 1

Error 400 when trying to display image from my database

Posted: Tue Mar 04, 2014 4:30 pm
by Sophie

Hi,

I’m trying to display image from my database.
I’ve got a service and mapping an image component with javascrpit.
The code is :
Appery("image_imme").attr("src","data:image/jpeg;base64," + value);

In my app, the image appears few seconds and then disappears.
In Chrome network console, in can see image in preview (GET (data) image/jpeg) but next line i’ve got error 400 bad request (GET text/plain) with bad url.

I can’t fix it.

Do you have any idea ?

Image Image Image Image


Error 400 when trying to display image from my database

Posted: Tue Mar 04, 2014 6:36 pm
by Maryna Brodina

Hello! Instead this code in mapping preAppery("image_imme").attr("src","data:image/jpeg;base64," + value);/pre try prereturn "data:image/jpeg;base64," + value;/preRegarding 400 error, check if request parameters are correct

Please consider contacting Progress support.


Error 400 when trying to display image from my database

Posted: Wed Mar 05, 2014 3:06 pm
by Sophie

Merci Maryna.
This solved both points.


Error 400 when trying to display image from my database

Posted: Tue Mar 11, 2014 5:30 am
by Primož Rejec

Hello Sophie.
Could you please make some screenshots on how exactly to show images from database?
Step by step.
I can pay you for those screenshots if you want.
Primoz


Error 400 when trying to display image from my database

Posted: Mon Mar 24, 2014 10:15 am
by Sophie

Hello Primoz,

Sorry to see your message so late.
I'm' using a Progress Database with blob on Rest service.
Are you still interested in screenshots ?

Sophie.


Error 400 when trying to display image from my database

Posted: Mon Mar 24, 2014 11:03 am
by Primož Rejec

Hi Sophie,
I've managed to resolve my problem.

Thank you anyway :)

Primoz