Mono Class Library: System.Web.HttpResponse Overview | Members

System.Web.HttpResponse.WriteFile Method

Writes the contents of a file back to the client.

public void WriteFile (string filename, bool readIntoMemory)

Parameters

filename
The filename to send back.
readIntoMemory
Whether to load the file into the in-memory buffer, or queue the file for sending later.

Remarks

Sends the contents of the file back to the client. If readIntoMemory is true the contents of the file are loaded into the output buffer, this is convenient if the data to be sent is a temporary file that will be deleted before the request processing is completed.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0