JavaBean has some field type of byte[].
Bean is stored in DB to BLOB type of column.
I know that it is XML message.
How can I see this XML message.
thank you very much for your help!
JavaBean has some field type of byte[].
Bean is stored in DB to BLOB type of column.
I know that it is XML message.
How can I see this XML message.
thank you very much for your help!
Convert those bytes to characters. You only need to know the character encoding beforehand, otherwise those characters will end up like mojibake.
Here's an example using String
constructor and UTF-8 character encoding:
String string = new String(bytes, "UTF-8");