toByteArray

Read a channel to byte array.