BinaryEncode()
Converts binary data to a string.
BinaryEncode( binary=binary, encoding=string );
Returns: String
| Argument | Description |
|---|---|
|
binary
binary,
required
|
edit
A variable containing the binary data to encode. Alias: binaryData |
|
encoding
string,
required
|
edit
A string that specifies the encoding method to use to represent the data; one of the following:
|
Examples
editbase_64 = ToBase64("I am a string.");
binary_data = ToBinary(base_64);
dump(BinaryEncode(binary_data, "hex")); // 4920616D206120737472696E672E
See also
- Binary data
- BinaryDecode()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)