Click or drag to resize

HttpUtilityWriteBuffer Method

Writes a complete buffer of file data to the Response stream. The buffer should contain the entire file content.

Namespace:  NetQuarry.Net
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void WriteBuffer(
	byte[] buffer,
	string uniqueFileName,
	string mimeType,
	bool attachInline,
	int cacheExpires = 0
)

Parameters

buffer
Type: SystemByte
The buffer to write.
uniqueFileName
Type: SystemString
The name of the file. If the file is inline, this parameter can be anything.
mimeType
Type: SystemString
The mimetype of the data. If blank, the type 'application/octet-stream' is used.
attachInline
Type: SystemBoolean
True to return the file as an inline attachment. This should be used for images.
cacheExpires (Optional)
Type: SystemInt32
The number of minutes before the file expires.
See Also