title: How do you write a image to browser as a binary stream in coldfusion?
body: <p>I have a service on a Coldfusion 9 server that creates image banners on the fly for us. A separate machine has to save these files with something like:</p>
  
  <pre><code>wget http://myserver.com/services/local/bannerCreator/250x250-v3.cfm?prodID=3&amp;percentSaving=19
  </code></pre>
  
  <p>The problem is that I can't think of how to get coldfusion to write out binary data without using a temporary file. At the minute the image is just displayed as an image tag like this:</p>
  
  <pre><code>&lt;cfimage action = "writeToBrowser" source="#banner#" width="#banner.width#" height="#banner.height#" /&gt;
  </code></pre>
  
  <p>Any ideas? Or should I just use a temporary file?</p>