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
| Argument | Description |
|---|---|
|
file
any,
required
|
edit
file path Alias: source, filePath, path |
Examples
editbinaryContent = fileReadBinary(expandPath('./image.jpg'));
See also
- Binary data
- File handling
- Checksum
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)