# GrapeCity.ActiveReports.Data.ListDataSource.GetBytes

## Content

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



<h1 id="GrapeCity_ActiveReports_Data_ListDataSource_GetBytes_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetBytes*">GetBytes Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Data_ListDataSource_GetBytes_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetBytes*"></a>
<h4 id="GrapeCity_ActiveReports_Data_ListDataSource_GetBytes_System_Int32_System_Int64_System_Byte___System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetBytes(System.Int32,System.Int64,System.Byte[],System.Int32,System.Int32)">GetBytes(int, long, byte[], int, int)</h4>
<div class="markdown level1 summary"><p>Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)</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.int32">int</a></td>
      <td><span class="parametername">i</span></td>
      <td><p>The zero-based column ordinal.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td><span class="parametername">fieldOffset</span></td>
      <td><p>The index within the field from which to start the read operation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">buffer</span></td>
      <td><p>The buffer into which to read the stream of bytes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bufferoffset</span></td>
      <td><p>The index for <code class="paramref">buffer</code> to start the read operation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The number of bytes to read.</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.int64">long</a></td>
      <td><p>The actual number of bytes read.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.idatarecord.getbytes">IDataRecord.GetBytes(int, long, byte[], int, int)</a></div>
</div>
