readBytes

Reads the InputStream into a byte[]

Return

The read bytes

Parameters

stream

The stream to read

Throws

if an I/O error occurs