RT, the library is the hexadecimal value of the type of BLOB, object defined in the type String is received, the bosses excuse me, how to turn?
CodePudding user response:
First to determine whether a blob data is empty, and then USES the input stream to read data
The String content=null;
Try {
If (image!=null) {
InputStream is=image. GetBinaryStream ();
Byte [] b=new byte [is available ()];
Is. Read (b, 0, b.l ength);
The content=new String (b);
}
System. The out. Println (content);
} the catch (IOException e) {
e.printStackTrace();
}
CodePudding user response: