void WriteFileDataBase64(string, string, bool)
Writes binary data to a file
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
filePath |
string The path of the file. |
base64Data |
string Each byte must be base-64 encoded. |
append |
bool True to append to the end of the file. |
Return
Nothing returned
Remarks
The kiosk user must have sufficient permissions to perform any file IO operation that performs a read or write operation on the current disk.
Examples
var sampleFile = KioApp.DoUrlSubstitution('$$KIO_USERDATA$$') + 'sampleFile.txt';
//a falsy last arg will overwrite any existing text in the file.
KioFileIO.WriteFileDataBase64(sampleFile, btoa('Write to a file'), 0);
KioFileIO.WriteFileDataBase64(sampleFile, btoa('Append this to a file'), 1);
Requirements
KioWare for Windows version 8.3 or greater.