RE: [PHP] Syntax Eyes

From: Date: Thu, 26 Jul 2001 02:04:40 +0000
Subject: RE: [PHP] Syntax Eyes
Groups: php.general 
Request: Send a blank email to php-general+get-59664@lists.php.net to get a copy of this message
Almost, but not quite. You also need to prepend a Header before any output your data to tell the browser its content type. Eg <?php Header("Content-type: image/jpg"); ...rest of output code ?> -----Original Message----- From: Mark Roedel [mailto:MarkRoedel@letu.edu] Sent: July 26, 2001 12:02 AM To: Clayton Dukes; Php-General Subject: RE: [PHP] Syntax Eyes > -----Original Message----- > From: Clayton Dukes [mailto:cdukes@cdukes.com] > Sent: Wednesday, July 25, 2001 10:42 AM > To: Mark Roedel; Php-General > Subject: Re: [PHP] Syntax Eyes > > > I have a row in sql that is binary data (a jpeg) > I need to echo that data to a table on the web page in the form of the > original jepg, when I echo it now, I just get the actual data stream. > > How can I fix this? <?php echo "<td><img src=\"/path/to/script/that/outputs.jpeg\"></td>"; ?> --- Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University || -- Henry Kissinger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59664) next »