Bewerken

Delen via


HttpResponseWrapper.TransmitFile Method

Definition

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:
 override void TransmitFile(System::String ^ filename, long offset, long length);
public override void TransmitFile (string filename, long offset, long length);
override this.TransmitFile : string * int64 * int64 -> unit
Public Overrides 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

The offset parameter is less than zero.

-or-

The length parameter is less than -1.

-or-

The length parameter is greater than the file size minus offset.

The out-of-process worker request is not supported.

-or-

The response is not using a HttpWriter object.

Applies to

TransmitFile(String)

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

public:
 override void TransmitFile(System::String ^ filename);
public override void TransmitFile (string filename);
override this.TransmitFile : string -> unit
Public Overrides Sub TransmitFile (filename As String)

Parameters

filename
String

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

Exceptions

filename is null

Applies to