Skip to content

datasource.binaryLoad deprecated ​

Returns a file's contents as a base64 string.

js
datasource.binaryLoad(fileName)

Parameters ​

ParameterTypeDescription
fileNamestringThe path of the file.

Returns ​

string | null

The file's contents, base64-encoded, or null when the file can't be read.

Examples ​

js
const base64 = datasource.binaryLoad("path/to/my_file.bin");