downloadFile

abstract suspend fun downloadFile(attachment: Attachment): Flow<ByteArray>

Downloads a file from remote storage.

Return

A flow of byte arrays representing the file data.

Parameters

attachment

The attachment record associated with the file.