Posts tagged Hexadecimal string to Bytes array
Hexadecimal string to Bytes array
Feb 26th
1: public static byte[] HexToBytes(String hexString) 2: { 3: byte [] byteArray = null; 4: int byteCount = 0; 5: if (hexString != null && hexString.Length > 0) 6: { 7: if (hexString.Length % 2 != 0) //make sure we have an even number of characters 8: hexString = "0" + hexString; 9: byteCount = [...]