 class="parameter ">stream<span class="token operator">: </span><a href="https://fzhinkin.github.io/kotlinx-io-dokka-docs-preview/kotlinx-io-core/kotlinx.io/-source/index.html">Source</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Construct a Blob with the given stream of data. The passed stream will be closed when it is copied either to memory (see <code class="lang-kotlin">getContent</code>) or to the database. If it is closed before that, by client