Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group