---
title: "StreamResult.ToStream"
url: "https://reference.aspose.com/page/net/aspose.page.plugins/streamresult/tostream/"
product: "Aspose.Page for .NET API Reference"
description: "StreamResult method. Tries to convert the result to a stream object"
---

## StreamResult.ToStream method

Tries to convert the result to a stream object.

```csharp
public Stream ToStream()
```

### Return Value

A stream object representing the output data if the result is stream; otherwise `null`.

### See Also

* class [StreamResult](../)
* namespace [Aspose.Page.Plugins](../../streamresult/)
* assembly [Aspose.Page](../../../)


