Originally posted by Isomorphic
Implementation-Vendor: Oracle Corporation
Implementation-Title: JDBC debug
Implementation-Version: 11.2.0.3.0
Repository-Id: JAVAVM_11.2.0.3.0_LINUX_110823
and while reading a clob I obtain an OracleClobReader (tested with type="text" or type="clob")
is it normal?
the listgrid bound to the datasource which has this clob field works normally.
But I have a DMI method where I fetch records from the datasource and then I need to convert the clob field to a string...previously I was doing like this:
Code:
CharArrayReader richText = (CharArrayReader) map.get("RICH_TEXT"); if (richText == null) { return; } int ch = 0; richText.reset(); StringBuffer sb = new StringBuffer(""); while((ch = richText.read()) != -1) { sb.append((char) ch); } richiesta.put(nomeParametro, sb.toString());
Comment