Click or drag to resize
ResponseDataSenderWriteFile Method
Streams the data file to the response.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
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: Byte
Returns streamed binary data if requested by returnOutputData. Binary data are never returned for range requests.
See Also