Skip to content

qie.hexDecodeToBytes

Signature: qie.hexDecodeToBytes(input)

Returns: byte[] decodedBytes - the decoded byte array

Decode the HEX encoded input value to a byte array.

Parameters

Type Name Description Default
String input the HEX encoded value

Example

var hexBytes = '48656c6c6f2c20576f726c6421';                                   // Hello, World!
var regularBytes = qie.hexDecodeToBytes(hexBytes);                             // byte[]
var helloWorldDecodedFromEncodedHexBytes = new java.lang.String(regularBytes); // Hello, World!