Hybrid Integration 10.2 | Integrating On-Premises Applications | 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- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release