HttpResponse.WriteFile Method (String, Boolean)
Assembly: System.Web (in system.web.dll)
'Declaration Public Sub WriteFile ( _ filename As String, _ readIntoMemory As Boolean _ ) 'Usage Dim instance As HttpResponse Dim filename As String Dim readIntoMemory As Boolean instance.WriteFile(filename, readIntoMemory)
public void WriteFile ( String filename, boolean readIntoMemory )
public function WriteFile ( filename : String, readIntoMemory : boolean )
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.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.