---
title: "file.asBase64 Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_file_asBase64.htm
product: "Upload Suite 8"
---

# file.asBase64 Property ActiveX/Java Uploader JavaScript

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets a user-selected file content as Base64 string.

## Syntax
 
```
$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.
