public static String blob2str(Blob blob)
{
InputStream in= null;
BufferedReader br = null;
StringBuffer result = new StringBuffer();
try
{
in = blob.getBinaryStream();
br = new BufferedReader(new InputStreamReader(in));
String temp = null;
while(null != (temp = br.readLine())){
result.append(temp);
}
}catch(Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
br.close();
in.close();
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
return result.toString();
}