USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Save a stored binary document to the server file system
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.
| Parameter | Description |
|---|---|
| cmd | DocumentObjectID (or blank if using a SQL query) |
| Argument 0 | SQL statement that selects the document blob and file name |
| Argument 1 | Column name for the attachment blob field |
| Argument 2 | Column name for the file name field |
| Argument 3 | Output file name (no path, file will be placed in the userfiles folder) |
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)"