Click or drag to resize

IDocStorageServiceWriteDocToResponse Method (IAppContext, String, String, String, Boolean)

Retieve the specified document and write it to the response.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
void WriteDocToResponse(
	IAppContext cxt,
	string docId,
	string name,
	string mimeType,
	bool inline
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
docId
Type: SystemString
The ID of the document to write out.
name
Type: SystemString
The "pretty" name of the file.
mimeType
Type: SystemString
The mimetype of the data. If blank, the type 'application/octet-stream' is used.
inline
Type: SystemBoolean
True to return the file as an inline attachment. This should be used for images.
See Also