## WriteTo(StreamContainer) {#writeto}

Copies the contained data to another [`StreamContainer`](../).

```csharp
public virtual void WriteTo(StreamContainer streamContainer)
```

| Parameter | Type | Description |
| --- | --- | --- |
| streamContainer | StreamContainer | The stream container to copy to. |

### See Also

* class [StreamContainer](../)
* namespace [Aspose.Imaging](../../streamcontainer/)
* assembly [Aspose.Imaging](../../../)

---

## WriteTo(StreamContainer, long) {#writeto_1}

Copies the contained data to another [`StreamContainer`](../).

```csharp
public virtual void WriteTo(StreamContainer streamContainer, long length)
```

| Parameter | Type | Description |
| --- | --- | --- |
| streamContainer | StreamContainer | The stream container to copy to. |
| length | Int64 | The bytes count to write. |

### Exceptions

| exception | condition |
| --- | --- |
| [FrameworkException](../../../aspose.imaging.coreexceptions/frameworkexception/) | Copy operation cannot complete. Cannot read + count + bytes. |

### See Also

* class [StreamContainer](../)
* namespace [Aspose.Imaging](../../streamcontainer/)
* assembly [Aspose.Imaging](../../../)


