Received: from easi.soft.net. (server.easi.soft.net [164.164.23.5]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0P4dwq07135 for ; Wed, 24 Jan 2001 23:40:06 -0500 (EST) (envelope-from shekhar@easi.soft.net) Received: from easi.soft.net (pcl50.easi.soft.net [100.0.0.150]) by easi.soft.net. (8.8.8/8.8.8) with ESMTP id KAA13491 for ; Thu, 25 Jan 2001 10:14:14 +0530 Message-ID: <3A6FB093.27AA747@easi.soft.net> Date: Thu, 25 Jan 2001 10:20:27 +0530 From: Som Reply-To: shekhar@easi.soft.net Organization: Easi X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Insertion and Retrieval of BLOB Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/347 X-Sequence-Number: 1020 Hi Everybody,
There are two methods we can insert and retrieve image from db.
One is by JDBC way , another is by Postgres extensions.

I have problem with both while implementing.
If im trying to retrieve the image (which is stored in OID type) by Postgres extensions,

Ex: using LargeObjectManager lobj;
LargeObject  lobj.open(OID);
Exception    :Fast path protocol error: Z

If im trying insert image by  JDBC way i.e  by getBinaryStream()a and setBinaryStreams() methods of PreparedStatement
Im getting Exception saying :
Exception : InputStream parameter is not supported.

any idea ?

--
 Som
 
 
 
 
 
 
 
 
 
 

--