One thing about this: make sure to use CFSILENT to ensure that the first character of your output is the first character of the GIF file. Also note that CF debug output will kill you.
Secondly you may have to use some combination of ToString() and ToBinary() to do this. For example the following happily places a single pixel GIF on the screen with no file system access: <cfsilent> <cfsetting showdebugoutput="No" /> <cfcontent type="image/gif; charset=8859_1"> </cfsilent><cfoutput>#ToString(ToBinary("R0lGODlhAQABAIAAAP///wAAACH5BAE AAAAALAAAAAABAAEAAAICRAEAOw=="))#</cfoutput> That's probably a little more complex than you need since I used Tobase64() to encode the graphic (but this makes for a "fully printable" string - just using ToString() creates a lot of non-printable characters - something that may not matter to you). In my case I was aiming to store the encoded graphic in a database, thus the ToBase64(). Jim Davis > -----Original Message----- > From: Matt Liotta [mailto:[EMAIL PROTECTED] > Sent: Friday, September 05, 2003 10:44 AM > To: CF-Talk > Subject: Re: Sending binary directly to the browser? > > The below should do the trick for you. > > <cfcontent type="image/gif; charset=8859_1"> > <cfoutput>#gifdatahere#</cfoutput> > > Matt Liotta > President & CEO > Montara Software, Inc. > http://www.MontaraSoftware.com > (888) 408-0900 x901 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm