fromInputStream

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.