Wrap #content# in cfoutputs. What happens? Ade
-----Original Message----- From: Peter Shaw [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 12:19 To: CF-Talk Subject: Writing Binary Images to Screen Hi, I have a COM object that returns a binary image file. How can I write this to the screen? My best effort so far - which seems rather inelegant - is: <cffile action = "write" file = "#expandpath("./")#image.gif" output = "#content#"> <img src = "image.gif"> my attempt to improve on this was to have something like: <img src = "imageMaker.cfm"> in a calling file where imageMaker.cfm calls the COM object and uses CFCONTENT to return an image/gif type file. However, I run in to problems with this when I attempt: <cfcontent type = "image/gif" reset = "yes">#content# because, of course, we cannot write binary files to the screen. Is there anyway to do this without having to write the binary info to a file? Those lucky people over at Microsoft can simply do: Response.BinaryWrite content Peter -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206327 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54