# GrapeCity.ActiveReports.SectionReportModel.Picture.ImageBytes

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReportModel_Picture_ImageBytes_" data-uid="GrapeCity.ActiveReports.SectionReportModel.Picture.ImageBytes*">ImageBytes Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReportModel_Picture_ImageBytes_" data-uid="GrapeCity.ActiveReports.SectionReportModel.Picture.ImageBytes*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReportModel_Picture_ImageBytes" data-uid="GrapeCity.ActiveReports.SectionReportModel.Picture.ImageBytes">ImageBytes</h4>
<div class="markdown level1 summary"><p>Gets or sets the Image to be printed in the <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Picture.html">Picture</a> control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public byte[] ImageBytes { get; set; }</code></pre>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReportModel_Picture_ImageBytes_examples">Examples</h5>
<p>This snippet shows how to load data in script into <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Picture.html">Picture</a> instance with name &quot;Picture1&quot;.</p>
<pre><code class="lang-csharp">public void Detail_Format()
{
    this.Picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif");
}</code></pre>

<p>This snippet shows how to load data in code-based reports into <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Picture.html">Picture</a> instance with name &quot;picture1&quot;.
Subscribe to event <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Section.Format.html">Format</a> of <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Detail.html">Detail</a> of your report.</p>
<pre><code class="lang-csharp">private void detail_Format(object sender, System.EventArgs eArgs)
{
    this.picture1.ImageBytes = System.IO.File.ReadAllBytes("\\mycompany.gif");
}</code></pre>

</div>
