Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using jdbc to write data to Clob column
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