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

# SaveAttachment

> Verwenden Sie SaveAttachment in der ABBYY FlexiCapture API, um einem angegebenen Dokument-, Seiten- oder Batch-Objekt auf dem Application Server ein File als Anhang hinzuzufügen.

<div id="what-it-does">
  ## Was es macht
</div>

Fügt dem angegebenen Objekt einen Anhang hinzu.

<div id="definition">
  ## Definition
</div>

```
void SaveAttachment( int sessionId, int type, int objectId, int batchId, int projectId, File file );
```

<div id="parameters">
  ## Parameter
</div>

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Typ</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>Die ID der Verbindung zum Application Server</p></td></tr><tr><td><p>type</p></td><td><p>int</p></td><td><p>Typ des Anhangs. Mögliche Werte:</p><ul><li><strong>9</strong> - Anhang zu einem Dokument;</li><li><strong>10</strong> - Anhang zu einer Seite;</li><li><strong>11</strong> - Anhang zu einem Batch.</li></ul></td></tr><tr><td><p>objectId</p></td><td><p>int</p></td><td><p>Die ID des Objekts</p></td></tr><tr><td><p>batchId</p></td><td><p>int</p></td><td><p>Die ID des Batch</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>Die ID des Projekts</p></td></tr><tr><td><p>file</p></td><td><p><a href="/de/flexi-capture/api/structures/file">File</a></p></td><td><p>Datei des Anhangs</p></td></tr></tbody></table>

<div id="returned-value">
  ## Rückgabewert
</div>

Kein Rückgabewert.
