> ## 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.

# AddNewImage

> Add an image or multi-page file to a batch with the AddNewImage method of the ABBYY FlexiCapture Web Services API, and then process the batch to access pages.

## What it does

Adds an image to a batch, including a multi-page image (one new document is created, which is then split into one-page documents at the pre-processing stage).

<Warning>
  The added images will become accessible only after they are pre-processed. Use the [ProcessBatch](/flexi-capture/api/methods/process-batch) method to initiate batch processing after you have added the images or use the [CloseTask](/flexi-capture/api/methods/close-task) method to close the task and to send it in the **Import** stage if the images were added into the documents of a task that was opened with the [OpenTask](/flexi-capture/api/methods/open-task) method.
</Warning>

## Definition

```
void AddNewImage( int sessionId, int batchId, File file );
```

## Parameters

| **Name**  | **Type**                                   | **Description**                                      |
| --------- | ------------------------------------------ | ---------------------------------------------------- |
| sessionId | int                                        | The ID of the connection to the Application Server   |
| batchId   | int                                        | The ID of the batch to which an image is to be added |
| file      | [File](/flexi-capture/api/structures/file) | The file that contains an image                      |

## Returned value

None.
