public static String BLOB2String(Object o) throws SQLException{
String str = null;
byte[] inbyte=null;
if(o instanceof Blob){
Blob blob = (Blob) o;
if (blob != null) {
inbyte = blob.getBytes(1, (int) blob.length());
}
str =new String (inbyte);
}
return str;
}
BLOB 转 String JAVA
最新推荐文章于 2024-01-25 15:07:42 发布