This content has been marked as final.
Show 4 replies
-
1. Re: Class Cast Exception using Oracle CLOB
reesear Sep 21, 2005 9:14 AM (in response to reesear)I found that my problem is actually when I am Casting the ResultSet to an OracleResultSet.
-
2. Re: Class Cast Exception using Oracle CLOB
reesear Sep 21, 2005 9:29 AM (in response to reesear)I am still unable to get this code to work. Now I am having problems with converting the connection returned by Jboss to an OracleConnection. HELP.
-
3. Re: Class Cast Exception using Oracle CLOB
haribabu_nunna Sep 21, 2005 10:08 PM (in response to reesear)Hai,
I am enclosing a piece of code, u can use it, whether it works for you......
oracle.sql.CLOB my_storyclob = null;
Writer storywriter;
my_storyclob = (CLOB)rs.getObject(3);
storywriter =((CLOB)my_storyclob).getCharacterOutputStream();
storywriter.write(story);
storywriter.flush();
storywriter.close();
Thanks & Regards,
Hari Babu Nunna -
4. Re: Class Cast Exception using Oracle CLOB
reeser Sep 22, 2005 7:19 PM (in response to reesear)That didn't work either. I did get it working, but I had to use a java.sql.Clob instead of a Oracle CLOB.