tags:

views:

131

answers:

1

Hi,

I want to show images that are requested from a binary field (blob) out of a mysql database. They are retrieved by a PHP script and outputs a 'real' jpeg image i.e. header('Content-Type') = 'image/jpeg'. This is working.

But how can i intercept this image that is being made by an ajax call ?

A: 

Have a look at this article.

kgiannakakis
This article is not really what i am looking for, it explains how to load an image that is referred by an url i.e. .attr('src', 'images/headshot.jpg'); but not how to convert a binary response of the image itself
Sobek
You also have a url, something like this http://www.myserver.com/app/php-script.php
kgiannakakis
aha :), that is also a good solution, works now, thanks
Sobek