public static String readClobData(Reader reader) throws IOException {
StringBuffer data = new StringBuffer();
char[] buf = new char[1024];
int cnt = 0;
if (null != reader) {
while ( (cnt = reader.read(buf)) != -1) {
data.append(buf, 0, cnt);
}
}
return data.toString();
}
if(rs.next()){
String clobData = readClobData(rs.getCharacterStream("CONTENT"));
content = new String(clobData.getBytes("utf-8"), "utf-8");
actionForm.setContent(content);
}
//GET LOB DATA