Re: JDBC + large objects problem

From: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>
To: Patrick Goodwill <goodwill(at)cheese(dot)stanford(dot)edu>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: JDBC + large objects problem
Date: 2000-08-25 22:21:21
Message-ID: Pine.LNX.4.21.0008251514410.14451-100000@penguin.kraut.bc.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Today, in a message to pgsql-interfaces, Patrick Goodwill wrote:
>
> "InputStream as parameter not supported"
>
> PreparedStatement pstmt = ...
> ...
> pstmt.setBinaryStream(3, textStream, text.length());

As the error message says, streams are not yet supported for blobs.
Instead, read the contents of the stream into a byte array and use the
setBytes() method of PreparedStatement.

> if ya'll have any ideas why it does what it does, i just might kiss your
> feet. =)

Better yet, you could consult the archives of this mailing list. This
question seems to come up every couple of weeks. You can find an archive
at http://www.geocrawler.com/lists/3/Databases/105/0/.

Joachim

--
work: joachima(at)realtimeint(dot)com (http://www.realtimeint.com)
private: joachim(at)kraut(dot)bc(dot)ca (http://www.kraut.bc.ca)

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Santiago 2000-08-26 02:03:17 VB and ADO
Previous Message Rob Judd 2000-08-25 22:16:10 Re: JDBC + large objects problem