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

From: Date: Sat, 25 May 2002 12:29:05 +0000
Subject: Re: displaying an image with header(... does not work
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-99222@lists.php.net to get a copy of this message
sound pretty funny... but I opened the browser to test it again, and it worked without problems :-) No clue why. Anyway.. thank you Andy "Jens Lehmann" <newsgroup@developerforum.net> schrieb im Newsbeitrag news:20020525121409.87486.qmail@pb1.pair.com... > > > 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 (#99222) next »