I need a solution to convert String to byte array without changing like this:
Input:
String s=\"Test\";
Output:
String
You can revert back using
String originalString = new String(b, "UTF-8");
That should get you back your original string. You don't want the bytes printed out directly.