Zoomed Image

AMSX Scripting Language - Command : documentobjecttoclient

Summary

Send a stored binary document to the client browser for download

Description

Retrieves a binary document from a blob field in the database and sends it to the client browser via msLaunch. The document is identified by a SQL query that returns the attachment blob and filename columns.

Parameters

ParameterDescription
cmdDocumentObjectID (or blank if using a SQL query)
Argument 0SQL statement that selects the document blob and file name
Argument 1Column name for the attachment blob field
Argument 2Column name for the file name field

Syntax


DocumentObjectToClient "DocumentObjectID (or blank if using a SQL query)", "SQL statement that selects the document blob and file name", "Column name for the attachment blob field", "Column name for the file name field"

Return to the AMSX Command Reference