Sophie
Posts: 0
Joined: Tue Mar 04, 2014 4:30 pm

Error 400 when trying to display image from my database

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

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

Error 400 when trying to display image from my database

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.

Sophie
Posts: 0
Joined: Tue Mar 04, 2014 4:30 pm

Error 400 when trying to display image from my database

Merci Maryna.
This solved both points.

Primož Rejec
Posts: 0
Joined: Mon Feb 17, 2014 10:05 pm

Error 400 when trying to display image from my database

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

Sophie
Posts: 0
Joined: Tue Mar 04, 2014 4:30 pm

Error 400 when trying to display image from my database

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.

Primož Rejec
Posts: 0
Joined: Mon Feb 17, 2014 10:05 pm

Error 400 when trying to display image from my database

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

Thank you anyway :)

Primoz

Return to “Issues”