getByteArrayStreamFromStream

Retrieves data from an InputStream. Guaranteed to close the InputStream.

Return

Data from the InputStream as a ByteArrayOutputStream

Parameters

stream

InputStream data.

Throws

Provide log details of this exception in a catch with specifics about the operation this method was called for.