Integration Server 10.15 | Built-In Services Reference Guide | IO Folder | Summary of Elements in this Folder | pub.io:streamToString
 
pub.io:streamToString
WmPublic. Creates a string from data that is read from an InputStream.
Input Parameters
inputStream
java.io.InputStream The InputStream to convert to a string.
encoding
String. Optional. Name of a registered, IANA character set (for example, ISO-8859-1). If you specify an unsupported encoding, the system throws an exception. If no value is specified or if the encoding is set to autoDetect, the default operating system encoding is used.
Output Parameters
string
String Data read from inputStream and converted to a string.
Usage Notes
The pub.io:streamToString service reads all of the bytes in the input stream but does not close the input stream. You must invoke pub.io:close to close the input stream.