downloadFile

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

Downloads a file from the Supabase storage bucket.

Return

A Flow of ByteArray representing the file data.

Parameters

attachment

The Attachment record associated with the file to be downloaded.