IDocStorageServiceWriteDocToResponse Method (IAppContext, String, String, String, Boolean, Int32) |
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,
int expires
)
Sub WriteDocToResponse (
cxt As IAppContext,
docId As String,
name As String,
mimeType As String,
inline As Boolean,
expires As Integer
)
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. - expires
- Type: SystemInt32
The number of minutes before the content expires. This adds the context-expires header to the response.
See Also