In java,
// already set
byte[] bytes = ...;
byte array can be cast to string like
String s = bytes.toString();
The question is: how can I recover the same "bytes" from "s"?
the truth is that, the following code is wrong.
byte[] byteFromString = x.getBytes();