RPGspFileOut Function


Outputs an IFS file to the browser.


Syntax

RPGspFileOut(path/file)

Part Description
path/file Required. Character expression representing the path and filename of the IFS file to output.


Remarks

The function is commonly used to allow users to view IFS files in the browser, or to download them.


Examples

The following example demonstrates the use of RPGspFileOut to output PDF file "/invoices/Invoice.pdf" from the iSeries IFS to the user's web browser.

The Content-Type and Content-Disposition headers are set using RPGspSetHeader and RPGspSetCntType. The content disposition is set to "attachment" to cause the user to be prompted to download the file.


See Also


RPGspSetCntType

RPGspSetHeader


Profound Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925