Received: from algobit.com (algobit.com [161.58.221.229]) by hub.org (8.10.1/8.10.1) with ESMTP id e8JGBvs65644 for ; Tue, 19 Sep 2000 12:11:57 -0400 (EDT) Received: from comenrico ([213.167.206.163]) by algobit.com (8.8.8) id SAA62633; Tue, 19 Sep 2000 18:11:55 +0200 (CEST) Reply-To: From: "Enrico Comini" To: "ML-Postgres-Interfaces" Subject: PHP & Large Object Date: Tue, 19 Sep 2000 18:22:14 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01AE_01C02266.894A2440" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200009/72 Messaggio in formato MIME composto da pił parti. ------=_NextPart_000_01AE_01C02266.894A2440 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 ""; So i see only the blob like a sequence of chars Thanks, Enrico ------=_NextPart_000_01AE_01C02266.894A2440 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,=20
I' m a ne= wbie with=20 BLOBS.
I have pg= -database=20 with images in large object.
I read (w= ith=20 php) the blob but how to see this i= mage=20 ?
 
.......
pg_exec (= $conn,=20 "begin");
   =20 $handle=3Dpg_loopen($conn,68129,"r");
   =20 $img=3Dpg_loreadall($handle);
   =20 pg_loclose($handle);
pg_exec ($conn, "end"); 
 
echo "<= ;img=20 src=3D\"$img\" border=3D0>";

So i see only the blob like a sequen= ce of=20 chars
 
Thanks,
        =        =20 Enrico
------=_NextPart_000_01AE_01C02266.894A2440--