# TextControlController.Download Method

> Downloads the document in format of the stream type.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer > TextControlController.Download Method
- **384 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/download-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/download-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/download-method/llms-full.txt

---

### Description

Downloads the document in format of the stream type.

### Syntax

#### Download(TXTextControl.StreamType)

Downloads the document in format of the stream type.

Only for .NET 8.

```csharp
public Microsoft.AspNetCore.Mvc.ActionResult Download(TXTextControl.StreamType streamType);
```

```vbnet
Public Function Download(streamType As TXTextControl.StreamType) As Microsoft.AspNetCore.Mvc.ActionResult
```

| Parameter | Description |
|---|---|
| streamType | Specifies the resulting format. |

#### Download(TXTextControl.StreamType)

Only for .NET Framework 4.5.

```csharp
public System.Web.Mvc.ActionResult Download(TXTextControl.StreamType streamType);
```

```vbnet
Public Function Download(streamType As TXTextControl.StreamType) As System.Web.Mvc.ActionResult
```

### Return Value

Base64 encoded document in the resulting format.

---

## Nearby

- **Previous:** [TextControlController.Dispose Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/dispose-method/llms-full.txt)
- **Next:** [TextControlController.GetChars Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getchars-method/llms-full.txt)
