readAllBytes

fun readAllBytes(inputStream: InputStream?, maxBytes: Long): ByteArray