Converts binary data to a string.
binaryEncode(binaryData, encoding)
→ returns string
hex
uu
base64
base64URL
use binaryEncode to Encode with hex
s = binaryDecode('737472696E67','hex');
binaryEncode(s,'hex');
Expected Result: 737472696E67
use binaryEncode to Encode with UNIX UUencode (UU)
s = binaryDecode('&<W1R:6YG','UU');
binaryEncode(s,'UU');
Expected Result: string
use binaryEncode to Encode with base64
s = binaryDecode('&<W1R:6YG','base64');
binaryEncode(s,'base64');
Expected Result: string
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.