string readFileDataBase64(string filePath, int64 startPosition, int count)
Reads bytes from a file as a base64 encoded string
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
filePath |
string The path of the file |
startPosition |
int64 The position to start reading the file from |
count |
int The number of bytes to read from the file |
Return
The file bytes encoded as a base64 string.
Examples
var fileData = null;
var fileDetails = KioFileIO.getFileDetails('/home/kiosk/Documents/Test.txt');
if (fileDetails.exists)
fileData = KioFileIO.readFileDataBase64('/home/kiosk/Documents/Test.txt', 0, fileDetails.length);
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.