file.asBase64 Property ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets a user-selected file content as Base64 string.

Syntax

JavaScript Get/Set Value at Runtime
$au.uploader('uploaderID').files().get(index).asBase64(value);
value = $au.uploader('uploaderID').files().get(index).asBase64();

Property Value

Type: String

The file body encoded as Base64 string.

Remarks

Copying the file content from Java applet may take up to a few seconds per file (especially for large files). So if you are going to iterate all selected files, say, before starting the upload, be careful as it may slow down your script.