input Stream To Byte Array
static Array<byte> inputStreamToByteArray(@NonNull() InputStream inputStream)
Content copied to clipboard
Reads the input stream to a byte array.
Return
byte array with input streams content
Parameters
inputStream
an open InputStream to read from, caller is responsible forclosing
Throws
if the first byte cannot be read for any reason other than the end of thefile, if the input stream has been closed, or if some other I/O erroroccurs.