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

## FileResult.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 [FileResult](../)
* namespace [Aspose.Page.Plugins](../../fileresult/)
* assembly [Aspose.Page](../../../)


