title: Display an ashx image using jQuery?
body: <p>I've been trying to use the jQuery plugin <a href="http://colorpowered.com/colorbox/" rel="noreferrer">Colorbox</a> to display images I have in my DB through an ashx file.  Unfortunately it just spits a bunch of gibberish at the top of the page and no image.  Can this be done?  Here is what I have so far:</p>
  
  <pre><code>   $(document).ready
     (
         function () 
         {
             $("a[rel='cbImg']").colorbox(); 
         }
     );
  ...
  &lt;a rel="cbImg" href="HuntImage.ashx?id=15"&gt;Click to see image&lt;/a&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>My ashx file is writing the binary out:</p>
  
  <pre><code>            context.Response.ContentType = "image/bmp";
              context.Response.BinaryWrite(ba);
  </code></pre>