Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpResponse.TransmitFile Method (String)

Writes the specified file directly to an HTTP response output stream, without buffering it in memory.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

member TransmitFile : 
        filename:string -> unit

Parameters

filename
Type: System.String

The name of the file to write to the HTTP output.

ExceptionCondition
ArgumentNullException

The filename parameter is a null reference (Nothing in Visual Basic)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft