HttpResponse.WriteFile Method (String, Boolean)
.NET Framework 3.0
Writes the contents of the specified file into a memory block.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void WriteFile ( String filename, boolean readIntoMemory )
public function WriteFile ( filename : String, readIntoMemory : boolean )
Not applicable.
Parameters
- filename
The name of the file to write into a memory block.
- readIntoMemory
Indicates whether the file will be written into a memory block.
When this method is used with large files, calling the method might result in an exception. The size of the file that can be used with this method depends on the hardware configuration of the Web server. For more information, see article 812406, "PRB: Response.WriteFile Cannot Download a Large File" in the Microsoft Knowledge Base.
Community Additions
ADD
Show: