From: Enrico Comini <algobit@algobit.com>
To: ML-Postgres-Interfaces <Pgsql-Interfaces@Postgresql.org>
Subject: PHP & Large Object
Date: Tue, 19 Sep 2000 18:22:14 +0200
Message-ID: <NCBBIOBMPJJBPJICNDLLEEFHDEAA.algobit@algobit.com> (raw)
Hi,
I' m a newbie with BLOBS.
I have pg-database with images in large object.
I read (with php) the blob but how to see this image ?
.......
pg_exec ($conn, "begin");
$handle=pg_loopen($conn,68129,"r");
$img=pg_loreadall($handle);
pg_loclose($handle);
pg_exec ($conn, "end");
echo "<img src=\"$img\" border=0>";
So i see only the blob like a sequence of chars
Thanks,
Enrico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: algobit@algobit.com
Subject: Re: PHP & Large Object
In-Reply-To: <NCBBIOBMPJJBPJICNDLLEEFHDEAA.algobit@algobit.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox