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 -> 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 04:15:27 GMT
Message-ID: <zLxQ8.46980$LC3.3584217@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 - 23:15:27 CDT

Original text of this message

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