datasource.binarySave deprecated
Saves a base64 string to a file as bytes.
Deprecated
Use datasource.writeFile(fileName, datasource.base64Bytes(base64)) instead.
js
datasource.binarySave(fileName, base64, append)Parameters
| Parameter | Type | Description |
|---|---|---|
fileName | string | The path of the file. |
base64 | string | The file's contents, base64-encoded. |
append | boolean | Optional. true to add to the end of the file instead of replacing it. |
Returns
booleantrue when the file was saved, otherwise false.
Examples
js
datasource.binarySave("path/to/my_file.bin", "SGVsbG8gd29ybGQh"); // "Hello world!"