uploadFrom

open override fun uploadFrom(stream: InputStream, mimeType: String?)

Uploads data as the blob's content from an input stream.

Parameters

stream

The input stream to read the upload data from.

mimeType

The MIME type of the data to upload, nullable.

Throws

when the server responds with HttpStatusCode.BadRequest.

when the server responds with HttpStatusCode.Forbidden.

for other non-success status codes.