public String ClobToString(Clob clob) throws SQLException, IOException { String str = ""; Reader is = clob.getCharacterStream(); BufferedReader br = new BufferedReader(is); String s = br.readLine(); StringBuffer sb = new StringBuffer(); while (s != null) { sb.append(s); s = br.readLine(); } str= sb.toString(); if(br!=null){ br.close(); } if(is!=null){ is.close(); } return str; }