> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BinaryFile

> The BinaryFile interface provides access to file data in binary format — typically the pre-preprocessing source image of a document or page.

The `BinaryFile` interface provides access to file data in binary format. This object contains the image before preprocessing.

## Properties

| Name         | Type   | Access    | Description           |
| :----------- | :----- | :-------- | :-------------------- |
| **FileName** | string | Read-only | The name of the file. |

## Methods

### ConvertToBase64

```javascript theme={null}
string ConvertToBase64();
```

Returns the file data converted from binary to a Base64-encoded string.

## Related topics

<CardGroup cols={3}>
  <Card title="Document" icon="file-lines" href="/vantage/documentation/skill-designer/process/custom-activity/document">
    The document currently being processed by the Custom activity.
  </Card>

  <Card title="Page" icon="file" href="/vantage/documentation/skill-designer/process/custom-activity/page">
    Properties of a single document page, including image dimensions.
  </Card>

  <Card title="Object model" icon="diagram-project" href="/vantage/documentation/skill-designer/process/custom-activity/object-model">
    Full JavaScript object reference for Custom activity scripts.
  </Card>
</CardGroup>
