Home
Library
Learn
Downloads
Support
Community
Forums
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Web Namespace
HttpResponse Class
HttpResponse Methods
WriteFile Method
WriteFile Method (String)
WriteFile Method (String, Boolean)
WriteFile Method (IntPtr, Int64, Int64)
WriteFile Method (String, Int64, Int64)
Related Links
AddCacheDependency Method
AddCacheItemDependencies Method
AddCacheItemDependency Method
AddFileDependencies Method
AddFileDependency Method
AddHeader Method
AppendCookie Method
AppendHeader Method
AppendToLog Method
ApplyAppPathModifier Method
BinaryWrite Method
Clear Method
ClearContent Method
ClearHeaders Method
Close Method
DisableKernelCache Method
End Method
Flush Method
Pics Method
Redirect Method
RemoveOutputCacheItem Method
SetCookie Method
TransmitFile Method
Write Method
WriteSubstitution Method
HttpResponse
.
.
::
.
WriteFile Method
This page is specific to:
.NET Framework Version:
1.1
2.0
3.0
3.5
4.0
.NET Framework Class Library
HttpResponse
.
.
::
.
WriteFile Method
Writes the specified file directly to an HTTP response output stream.
Overload List
Name
Description
WriteFile(String)
Writes the contents of the specified file directly to an HTTP response output stream as a file block.
WriteFile(String, Boolean)
Writes the contents of the specified file directly to an HTTP response output stream as a memory block.
WriteFile(IntPtr, Int64, Int64)
Writes the specified file directly to an HTTP response output stream.
WriteFile(String, Int64, Int64)
Writes the specified file directly to an HTTP response output stream.
Top
See Also
Reference
HttpResponse Class
HttpResponse Members
System.Web Namespace
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Yes
No
Do you like the tabbed code blocks?
Yes
No
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View