Skip to content

datasource.binarySave deprecated ​

Saves a base64 string to a file as bytes.

js
datasource.binarySave(fileName, base64, append)

Parameters ​

ParameterTypeDescription
fileNamestringThe path of the file.
base64stringThe file's contents, base64-encoded.
appendbooleanOptional. true to add to the end of the file instead of replacing it.

Returns ​

boolean

true when the file was saved, otherwise false.

Examples ​

js
datasource.binarySave("path/to/my_file.bin", "SGVsbG8gd29ybGQh"); // "Hello world!"