FileReadBinary()
Reads an on-disk or in-memory binary file (such as an executable or image file) on the server, into a binary object
FileReadBinary( file=any );
Returns: any
Examples
binaryContent = fileReadBinary(expandPath('./image.jpg'));
See also
- Binary data
- File handling
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)