My input is "[B@ec3c95b"
String example ="[B@ec3c95b";
I want to make it same as output "[B@ec3c95b" in byte array type.
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();