PHP & Large Object

From: "Enrico Comini" <algobit(at)algobit(dot)com>
To: "ML-Postgres-Interfaces" <Pgsql-Interfaces(at)Postgresql(dot)org>
Subject: PHP & Large Object
Date: 2000-09-19 16:22:14
Message-ID: NCBBIOBMPJJBPJICNDLLEEFHDEAA.algobit@algobit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Edward Q. Bridges 2000-09-19 16:28:52 error compiling plperl
Previous Message Zeljko Trogrlic 2000-09-19 10:34:29 Re: input large object from internet