0 votes
130 views
asked in JAVA by (4k points)
Hi All

   How to convert hex string to byte in java?

1 Answer

0 votes
answered by (1.4k points)

Hi

  String hex = "68656c6c6f";

byte[] bts = new BigInteger(hex, 16).toByteArray();

Categories

...