Interbase
| From: | Enrico Comini | Date: | Fri, 10 Aug 2001 20:31:45 +0000 |
| Subject: | Interbase | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11236@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 ?