Subject | How to display image from BLOB using PHP with FireBird ? |
---|---|
Author | Tommy Cheng |
Post date | 2008-02-27T08:00:35Z |
<?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 ..
=.="
$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 ..
=.="