日期:2014-05-16 浏览次数:20478 次
public String ClobToString(CLOB clob) throws SQLException, IOException { String reString = ""; Reader is = clob.getCharacterStream();// 得到流 BufferedReader br = new BufferedReader(is); String s = br.readLine(); StringBuffer sb = new StringBuffer(); while (s != null) {// 执行循环将字符串全部取出付值给 ////StringBuffer由StringBuffer转成string sb.append(s); s = br.readLine(); } reString = sb.toString(); return reString; }