How to convert hex strings to byte values in Java

String str = "Your string";

byte[] array = str.getBytes();

Leave a Comment