downloadPublicAsFlow

Downloads a file from BucketApi.bucketId under path using the public url

Return

A flow that emits the download progress and at last the data as a byte array

Parameters

path

The path to download

options

Additional options for the download

Throws

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

on network related issues


fun BucketApi.downloadPublicAsFlow(path: String, channel: ByteWriteChannel, options: DownloadOptionBuilder.() -> Unit = {}): Flow<DownloadStatus>(source)

Downloads a file from BucketApi.bucketId under path using the public url

Return

A flow that emits the download progress and at last the data as a byte array

Parameters

path

The path to download

channel

The channel to write the data to

options

Additional options for the download

Throws

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

on network related issues