ResponseDataSenderWriteFile Method |
Streams the data file to the response.
Namespace: CMS.AspNet.Platform.RoutingAssembly: CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 13.0.131
Syntax public virtual byte[] WriteFile(
string filepath,
bool returnOutputData = false
)
Parameters
- filepath
- Type: SystemString
File path - returnOutputData (Optional)
- Type: SystemBoolean
If true, output data is returned
Return Value
Type:
ByteReturns streamed binary data if requested by
returnOutputData. Binary data are never returned for range requests.
Implements
IResponseDataSenderWriteFile(String, Boolean)See Also