Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Using jdbc to write data to Clob column

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@rationalconcepts.com>


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

  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 Thu Jun 20 2002 - 23:58:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US