Jim526
0
Q:

convert byte array to string

byte[] bytes = "hello".getBytes();
String s = new String(bytes, StandardCharsets.UTF_8);
0

byte[] byteArray1 = { 80, 65, 78, 75, 65, 74 };
String str = new String(byteArray1, 0, 3, StandardCharsets.UTF_8);
0

New to Communities?

Join the community