Cloud Application Integration (On-Premises) : Integration Server Built-In Services : IO Folder : pub.io:bytesToStream
pub.io:bytesToStream
WmPublic. Converts a byte[ ] to java.io.ByteArrayInputStream.
Input Parameters
bytes
byte[ ] The byte array to convert.
length
String Optional. The maximum number of bytes to read and convert. If length is not specified, the default value for this parameter is the length of the input byte array.
offset
String Optional. The offset into the input byte array from which to start converting. If no value specified, the default value is zero.
Output Parameters
stream
java.io.ByteArrayInputStream An open InputStream created from the contents of the input bytes parameter.
Usage Notes
This service constructs stream from the byte array using the constructor ByteArrayInputStream(byte[ ]). This constructor does not make a copy of the byte array, so any changes to bytes will be reflected in the data read from the stream.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback