HttpResponseBase.TransmitFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the specified file to the HTTP response output stream, without buffering it in memory.
Overloads
TransmitFile(String, Int64, Int64) |
Writes the specified part of a file to the HTTP response output stream, without buffering it in memory. |
TransmitFile(String) |
Writes the specified file to the HTTP response output stream, without buffering it in memory. |
TransmitFile(String, Int64, Int64)
Writes the specified part of a file to the HTTP response output stream, without buffering it in memory.
public:
virtual void TransmitFile(System::String ^ filename, long offset, long length);
public virtual void TransmitFile (string filename, long offset, long length);
abstract member TransmitFile : string * int64 * int64 -> unit
override this.TransmitFile : string * int64 * int64 -> unit
Public Overridable Sub TransmitFile (filename As String, offset As Long, length As Long)
Parameters
- filename
- String
The name of the file to write to the HTTP output stream.
- offset
- Int64
The position in the file where writing starts.
- length
- Int64
The number of bytes to write, starting at offset
.
Exceptions
Always.
Applies to
TransmitFile(String)
Writes the specified file to the HTTP response output stream, without buffering it in memory.
public:
virtual void TransmitFile(System::String ^ filename);
public virtual void TransmitFile (string filename);
abstract member TransmitFile : string -> unit
override this.TransmitFile : string -> unit
Public Overridable Sub TransmitFile (filename As String)
Parameters
- filename
- String
The name of the file to write to the HTTP output stream.
Exceptions
Always.
Applies to
.NET