webMethods Integration Cloud and Cloud Deployment Documentation 6.0.0 | webMethods Integration Cloud | Built-In Services | Built-In Services | IO | bytesToStream
 
bytesToStream
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 © 2014- 2019 | 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.