PHP & Large Object - Mailing list pgsql-interfaces

From Enrico Comini
Subject PHP & Large Object
Date
Msg-id NCBBIOBMPJJBPJICNDLLEEFHDEAA.algobit@algobit.com
Whole thread Raw
Responses Re: PHP & Large Object
List 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

pgsql-interfaces by date:

Previous
From: Zeljko Trogrlic
Date:
Subject: Re: input large object from internet
Next
From: "Edward Q. Bridges"
Date:
Subject: error compiling plperl