readFile

open suspend override fun readFile(filePath: String, mediaType: String?): Flow<ByteArray>

Reads a file from the specified path.

Return

A Flow of ByteArray representing the file data.

Parameters

filePath

The path of the file to read.

mediaType

Optional media type of the file.

Throws

PowerSyncException

If an error occurs during the read operation.

CancellationException

If the operation is cancelled.