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:[EMAIL PROTECTED]]
Sent: July 26, 2001 12:02 AM
To: Clayton Dukes; Php-General
Subject: RE: [PHP] Syntax Eyes


> -----Original Message-----
> From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> 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 ([EMAIL PROTECTED])  ||  "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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to