I got an exception while parsing a string to byte
String Str =\"9B7D2C34A366BF890C730641E6CECF6F\"; String [] st=Str.split(\"(?<=\\\\G.{2})\"); byte[]by
Assuming you want to parse the string as hexadecimal, try this:
bytes[i] = Byte.parseByte(st[i], 16);
The default radix is 10, and obviously B is not a base-10-digit.
B