downloadFile

abstract fun downloadFile(fileId: String, mimeType: String?): ByteArrayOutputStream

This method download a file with a given mime type and a given id

Return

A ByteArrayOutputStream with the content of the downloaded file

Parameters

fileId

The id fo the file to be downloaded

mimeType

The mimeType of the file to be downloaded