Cloud Application Integration (On-Premises) : Integration Server Built-In Services : File Folder : pub.file:streamToFile
pub.file:streamToFile
WmPublic. Writes the data in the InputStream to a file.
Input Parameters
fileName
String[] Fully qualified name of the file to be written to.
stream
java.io.InputStream The stream from which data is read.
append
String Optional. Specifies whether to append or overwrite if the specified file already exists. The default behavior is to create a new file if the file does not exist or overwrite an existing file if the file already exists.
Set to:
*true to append if the file already exists.
*false to overwrite if the file already exists.
Output Parameters
None.
Usage Notes
For security reasons, the pub.file:streamToFile service checks the input fileName parameter against the list of allowedWritePaths values specified in the fileAccessControl.cnf file. If the input fileName is not on the allowed list, an exception is thrown. For information about configuring the fileAccessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.
The streamToFile service does not automatically close the stream object. To close the input stream, use the pub.io:close service.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback