Interbase & Blob
| From: | Enrico Comini | Date: | Wed, 01 Aug 2001 13:19:09 +0000 |
| Subject: | Interbase & Blob | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10948@lists.php.net to get a copy of this message | ||
This is my page to extract image (from blob) in a interbase table.
I call it with :echo "src=\"blob2img.php?id_product=".$id_product."\"
";
<?php
//BLOB2JPG
$conn = ibase_connect($host,$user,$pass,$charset,$buffers,$dialect,$rules)
$set = ibase_query("SELECT IMAGE from products where (id_product =
$id_product)");
$row = ibase_fetch_row($set);
ibase_blob_echo($row[0]);
header("Content-type: image/jpeg");
ibase_close($conn);
?>
My problem is that the images are too slow.
Solutions ?