
BBjHttpResponse::setFile
Description
In BBj 14.0 and higher, this method sets a file for download.
Syntax
Return Value |
Method |
void |
setFile(string fileName) |
Parameters
Variable |
Description |
fileName |
the full/path/to/the/file |
Return Value
None.
Remarks
The example below shows setting a file to be sent within a BBjServlet.
Example
REM
Obtain the instance of the BBjAPI object |