Converts binary data to a string.
binaryEncode(binaryData, encoding)
→ returns string
hexuubase64base64URLuse 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.