# FarPoint.Web.Chart.ChartImageHttpHandler.RenderImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Chart_ChartImageHttpHandler_RenderImage_" data-uid="FarPoint.Web.Chart.ChartImageHttpHandler.RenderImage*">RenderImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Chart_ChartImageHttpHandler_RenderImage_" data-uid="FarPoint.Web.Chart.ChartImageHttpHandler.RenderImage*"></a>
<h4 id="FarPoint_Web_Chart_ChartImageHttpHandler_RenderImage_System_Byte___System_String_System_Web_HttpContext_" data-uid="FarPoint.Web.Chart.ChartImageHttpHandler.RenderImage(System.Byte[],System.String,System.Web.HttpContext)">RenderImage(byte[], string, HttpContext)</h4>
<div class="markdown level1 summary"><p>Render image to reponse stream of the current HttpContext.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void RenderImage(byte[] image, string imageType, HttpContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub RenderImage(image As Byte(), imageType As String, context As HttpContext)</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">image</span></td>
      <td><p>A byte array of an image which is written to the response output stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">imageType</span></td>
      <td><p>A image type string which is used to create the response content type for the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.httpcontext">HttpContext</a></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
