BBjHttpResponse::setFile (Deprecated)
BBjHttpResponse::setFile is deprecated for BBj 21.00 and higher. Instead, files can be uploaded using the ServletOutputStream retrieved by BBxServletResponse::getOutputStream.
Description
In BBj 14.00 and higher, this method sets a file for download.
Syntax
|
Return Value |
Method |
|
void |
setFile(string fileName) |
Parameters
|
Parameter |
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
|