Converts a string to a binary object. Used to convert
binary data that has been encoded into string format
back into binary data.
binaryDecode(string, encoding)
→ returns binary
hex
uu
base64
base64URL
use binaryDecode to decode with hex
binaryDecode('F62B','hex');
Expected Result: [BINARY]
use binaryDecode to decode with UNIX UUencode (UU)
binaryDecode('&<W1R:6YG','UU');
Expected Result: [BINARY]
use binaryDecode to decode with base64
binaryDecode('U3RyaW5n','base64');
Expected Result: [BINARY]
Each byte in the array is set to 0
arrayLen(binaryDecode('00000000000000000000000000000000','hex'))
Expected Result: 16
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.