public static String parse(Blob blob) {
String content = "";
try {
InputStream reader = blob.getBinaryStream();
byte[] buffer = new byte[1000];
int nbytes = 0;
while ((nbytes = reader.read(buffer)) != -1)
content += new String(buffer, 0, nbytes);
reader.close();
} catch (Exception e) {
}
return content;
}
public static String parse(Clob clob) {
String content = "";
try {
Reader reader = clob.getCharacterStream();
char[] buffer = new char[1000];
int nbytes = 0;
while ((nbytes = reader.read(buffer)) != -1)
content += new String(buffer, 0, nbytes);
reader.close();
} catch (Exception e) {
}
return content);
}