download

abstract fun download(): InputStream

Downloads the blob's content to an input stream.

Return

An input stream with the blob's content.

Throws

when the server responds with HttpStatusCode.Forbidden.

for other non-success status codes.


open fun download(path: String): Long

Downloads the blob's content to a file.

Parameters

path

The path of the file to read the upload data from.

Throws

when the file at the specified path can not be written.

when the server responds with HttpStatusCode.Forbidden.

for other non-success status codes.