Re: displaying an image with header(... does not work

From: Date: Sat, 25 May 2002 12:19:18 +0000
Subject: Re: displaying an image with header(... does not work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99220@lists.php.net to get a copy of this message
> Hi there, > > I am pulling out an image out of a mysql blob field. The image is there, I > can see it in mysqlfront. So I pull it out of the db store it into a > variable and then do a: > > header("Content-type: image/pjpeg"); > echo $picture; > > I do get a white screen and the browser is loading forever. I can not see > any error in that. Outputting text works, but not the image. > > Thanx for any help, > > Andy > Don't know if it's a typo, but it must be "image/jpeg" of course. Check your loops (if any) and your strings (esp. " and '). Maybe it's better to post the whole source in this case. Jens

« previous php.general (#99220) next »