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

file path

Alias: source, filePath, path

Examples

binaryContent = fileReadBinary(expandPath('./image.jpg'));

See also