# org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="org_jpedal_jbig2_JBIG2Decoder_decodeJBIG2_" data-uid="org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2*">decodeJBIG2 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="org_jpedal_jbig2_JBIG2Decoder_decodeJBIG2_" data-uid="org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2*"></a>
<h4 id="org_jpedal_jbig2_JBIG2Decoder_decodeJBIG2_System_Byte___" data-uid="org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(System.Byte[])">decodeJBIG2(byte[])</h4>
<div class="markdown level1 summary"><p>Decodes a JBIG2 image from a byte array</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual byte[] decodeJBIG2(byte[] data)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function decodeJBIG2(data As Byte()) As Byte()</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.byte">byte</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>the raw data stream</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.ioexception">IOException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="org.jpedal.jbig2.JBIG2Exception.html">JBIG2Exception</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
