EncodeFile Method
The EncodeFile method encodes a file.
Syntax
[str=] SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
EncodeFile(filename)
|
Parameters
filename |
String that specifies the filename. |
Return Value
Returns a String that contains the Base64 encoded file.
Remarks
Base64 is a data encoding scheme whereby binary-encoded data is converted to printable ASCII characters.
Examples
The following example encodes and displays a file.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
alert(SiteCafe.EncodeFile("c:/anyfile.cfg"));
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top