Hi, I have a CFX_ that creates a gif file that I want to be returned to client browser. The only way I have found is to write the file somewhere on the disk, then use the following code in the calling template: <CFCONTENT TYPE="image/gif" FILE="#tempFile#" DELETEFILE="Yes">
This is kind of cumbersome and inefficient. I'm looking for a way to send the gif image directly from the CFX_ in the stdoutput, with the correct header, like I'm able to do in a CGI version of my application, but it doesn't work. I suspect CF is flushing the stdoutput to plug it's own output, AFTER the CFX has run. An alternative would be to return the image content to the calling template and have it to send it using <CFCONTENT, but the content must be in binary (may contain zeros) and CFCONTENT omly expect a string :-( Has someone in this learned community ever found a trick to get around this? Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

