Subject | Re: [firebird-php] FB+PHP - Display image |
---|---|
Author | Milan Babuskov |
Post date | 2004-01-16T16:57:29Z |
Jean Lopes - TSA wrote:
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
> thaks for your answer, but in my case i can´t make the image apears. TheDoes it work when you load image from local file and dump it?
> 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.
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