Zoomed Image

AMSX Scripting Language - Command : DocumentObjectToServer

Summary

Save a stored binary document to the server file system

Description

Retrieves a binary document from a blob field in the database and saves it to the server's userfiles folder. 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
Argument 3Output file name (no path, file will be placed in the userfiles folder)

Syntax


DocumentObjectToServer "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", "Output file name (no path, file will be placed in the userfiles folder)"

Return to the AMSX Command Reference