webMethods and Intelligent Business Operations 10.2 | Integrating Cloud Applications | 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- 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