Re: JDBC and BLOB in Postgres - Mailing list pgsql-interfaces

From Peter Mount
Subject Re: JDBC and BLOB in Postgres
Date
Msg-id Pine.LNX.4.21.0010101120530.8388-100000@maidast.demon.co.uk
Whole thread Raw
In response to JDBC and BLOB in Postgres  (Didier Boudigue <didier.boudigue@nextenso.com>)
List pgsql-interfaces
On Fri, 6 Oct 2000, Didier Boudigue wrote:

> Hi,
> 
> I'm trying  Blob with JDBC Driver jdbc7.0-1.2  on postgresql 7.0.2
> (Mandrake 7.1) follwing the example given in paragraph "Using Large
> Objects" Chapter 58. JDBC Interface.
> 
> the getBinaryStream seems ok provided the blob is in the database, 
> while the setBinaryStream method call returns : 
> 
>     Error : InputStream as parameter not supported
> 
> Did I miss something ?

No. getBinaryStream() currently reads the entire blob into a
ByteArrayInputStream, which is what it then returns.

setBinaryStream() is in 7.1

Some alternatives are in the ImageViewer example.

Peter

-- 
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/




pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: TCL API
Next
From: Jamie Walker
Date:
Subject: Re: ODBC problem - crypt..