Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | File Folder | Summary of Elements in this Folder | pub.file:bytesToFile
 
pub.file:bytesToFile
WmPublic. Writes the specified byte array to a file.
Input Parameters
fileName
String The absolute path name of the file to which to write the byte array.
bytes
Byte[] The byte array to write to the file specified in the filename parameter.
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 file does not exist or overwrite an existing file if file already exists.
Set to:
*true to append to the file if the file already exists.
*false to overwrite the file if the file already exists.
Output Parameters
length
String Number of bytes written to the file.
Usage Notes
For security reasons, the pub.file:bytesToFile service checks the input fileName parameter against the list of allowedWritePaths values specified in the fileAcceessControl.cnf file. If the input fileName is not on the allowed list, Integration Server throws an exception. For information about configuring the fileAcceessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.