Date: 08/31/00
- Next message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] Image + Database + Html + HELP"
- Previous message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] CONNECT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
We store JPG files in a LONG RAW column of Oracle.
Above code query the jpg table. But How can I show it on the browser?
I need help! help! help!
Ex:
<html>
<head><title>Image&Database&HTML</title></head>
<body>
<?php
$conn= OCIPLogon("user","pass","host");
$sql = "select jpgimage from tbljpg where jpgid=1";
$stmt = OCIParse($conn,$sql);
if (!OCIExecute($stmt)) { print "execution failed"; exit(); }
OCIFetchInto($stmt, &$arr,OCI_RETURN_LOBS);
$arr["JPGIMAGE"]->load();
?>
<!-- <img src="??????????.???"> How can display the below jpg field data?-->
</body>
</html>
P.S.: The below code gives an error like...
Fatal Error: Call to a member function on a non-object in jpg.php line XX.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] Image + Database + Html + HELP"
- Previous message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] CONNECT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

