# GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream*">LoadFromStream Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream*"></a>
<h4 id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream(System.IO.Stream)">LoadFromStream(Stream)</h4>
<div class="markdown level1 summary"><p>Loads the object from a specified stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void LoadFromStream(Stream s)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">s</span></td>
      <td><p>instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream*"></a>
<h4 id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_System_Uri_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream(System.IO.Stream,System.Uri)">LoadFromStream(Stream, Uri)</h4>
<div class="markdown level1 summary"><p>Loads the object from a specified stream, using a base URI for resolving relative URIs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void LoadFromStream(Stream s, Uri baseUri)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">s</span></td>
      <td><p>instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Uri</span></td>
      <td><span class="parametername">baseUri</span></td>
      <td><p>The base URI for resolving relative URIs.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
