Subject Re: [firebird-php] How to display image from BLOB using PHP with FireBird ?
Author Milan Babuskov
Tommy Cheng wrote:
> <?php
> $conn = ibase_pconnect
> ("localhost:C:/AppServ/Firebird/Image.FDB", "SYSDBA", "masterkey");
> $sql = "SELECT BLOBIMAGE FROM STKIMAGE ORDER BY CODE";
> $res = ibase_query($conn, $sql);
> while($row = ibase_fetch_assoc($res))
> {
> echo $row["BLOBIMAGE"]."<br>";
> }
> ?>
>
> I use the code above, but i can't display the image on the brower.
> i also replace the "echo" with "ibase_blob_echo",also can't display ..
> =.="

You need to set the content type in the HTTP reply header.

--
Milan Babuskov
http://www.flamerobin.org