downloadFile

abstract suspend fun downloadFile(file: SubmissionFileReference, token: String, maxBytes: Int): ByteArray(source)

Downloads file without buffering more than maxBytes.

Throws

when the body exceeds the limit or cannot be read