Skip to content

download

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.storage/StorageBucket/download

[jvm]
suspend fun download(path: String): FluxbaseResponse<ByteArray>

Download a file as raw bytes. GETs /api/v1/storage/{bucket}/{path}. Port of download() in storage.ts:368.

Uses the binary-safe FluxbaseHttpClient.getBytes path, so non-text payloads (images, archives) survive intact — the response body never passes through a charset decode.