My input is "[B@ec3c95b"
String example ="[B@ec3c95b";
I want to make it same as output "[B@ec3c95b" in byte array type.
If I understand, you want to convert a String in a byte array.
For that, you can use the getBytes()
function to convert your String :
String input = "[B@ec3c95b";
byte[] output = input.getBytes();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.