Subject | Re: [firebird-php] How to display image from BLOB using PHP with FireBird ? |
---|---|
Author | Milan Babuskov |
Post date | 2008-02-27T08:44:54Z |
Tommy Cheng wrote:
--
Milan Babuskov
http://www.flamerobin.org
> <?phpYou need to set the content type in the HTTP reply header.
> $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 ..
> =.="
--
Milan Babuskov
http://www.flamerobin.org