qisdk / com.aldebaran.qi.sdk.util / IOUtils / toByteArray

toByteArray

static fun toByteArray(is: InputStream!): ByteArray!

Returns a byte array that represent the content of the stream

Parameters

is - InputStream!: the input stream

Exceptions

IOException - if file is not found

Return
ByteArray!: the content of the stream