Re: Output an image stream?

From: Date: Sun, 24 Jun 2001 05:15:49 +0000
Subject: Re: Output an image stream?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55013@lists.php.net to get a copy of this message
On Sat, Jun 23, 2001 at 04:50:48PM -0700, Todd Cary wrote: > I have created a barcode as an image stream ($im). Now, I want to > output it in HTML to a particular row and column on a form. Do I have > to save it as a file so that I can use the routine <img src="xx"> or is > there a way to directly output the stream? <img src="script_that_outputs_barcode_image.php"> Make sure to send a Content-type header before sending the image data: Header('Content-type: image/png'); ImagePNG($im); Matt

« previous php.general (#55013) next »