Re: Using jdbc to write data to Clob column

From: C. Ferguson <c_ferguson_at_rationalconcepts.com>
Date: Thu, 20 Jun 2002 21:58:29 -0700
Message-ID: <3D12B275.2F45ABE5_at_rationalconcepts.com>


Hi,
  have a look at
http://technet.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html

[Quoted]   If you don't have a technet account, sign up for one. They are free. Then browse the site.

hth,
Cindy

"J. Harris" wrote:

> I'm trying to get the following code to work, however when I do run the code
> below I get an Io exception: Connect reset by peer: socket write error...
>
> if (column.isClob())
> {
> String str = column.getValue();
> int strlength = str.length();
> Reader reader = new StringReader(str);
> stmt.setCharacterStream(ps++, reader, rlength);
> }
>
> int ret = stmt.executeUpdate();
>
> Any ideas?
Received on Fri Jun 21 2002 - 06:58:29 CEST

Original text of this message