fromInputStream

fun <Error class: unknown class>.fromInputStream(inputStream: InputStream, contentLength: Long? = null): <Error class: unknown class>

Create a ByteStream.SourceStream that reads from the given InputStream

Parameters

inputStream

The InputStream from which to create a ByteStream

contentLength

If specified, indicates how many bytes remain in the input stream. Defaults to null.