Subject Re: [firebird-php] FB+PHP - Display image
Author Milan Babuskov
Jean Lopes - TSA wrote:
> thaks for your answer, but in my case i can´t make the image apears. The
> browser only shows a long sequence of strange characters. i´d try some many
> diferentes sintaxes for Content-type but the result are ever the same.

Does it work when you load image from local file and dump it?
Something like this:

$fp = fopen('some.jpg', 'r');
$image = fread($fp, filesize('some.jpg'));
fclose($fp);

header("Content-type: image/jpg");
headers_sent();
echo $image;
exit();

--
Milan Babuskov
http://fbexport.sourceforge.net