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

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

Using jdbc to write data to Clob column

From: J. Harris <harris.john.a_at_worldnet.att.net>
Date: Fri, 21 Jun 2002 02:37:15 GMT
Message-ID: <vjwQ8.46846$LC3.3573749@bgtnsc04-news.ops.worldnet.att.net>


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 - 21:37:15 CDT

Original text of this message

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