putStream

fun StorageReference.putStream(source: <Error class: unknown class>): UploadTask(source)

Uploads the bytes of source to this reference, closing it; the kotlinx-io form of putStream(InputStream). On Android and the JVM the SDK streams the source as it uploads; the Apple and JS SDKs upload whole buffers, so there the source is read to its end first (off the caller's thread on Apple platforms, at once on JS).


fun StorageReference.putStream(source: <Error class: unknown class>, metadata: StorageMetadata): UploadTask(source)

Uploads the bytes of source to this reference with metadata; see putStream.