Chad, Variable only take binary values. Good news - you can easily
convert string to binary:

<cfcontent type="text/xml" variable="#ToBinary( ToBase64( 'YOUR_STRING'
) )#" /> 


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 24, 2007 4:59 PM
To: CF-Talk
Subject: cfcontent

I want cfcontent to take xml data from a query and force the user to
download it as an XML file.

Any tips?

I keep getting a CF Error if I put the xml in the variable attribute of
cfcontent.

"java.lang.String" is not a supported variable type. The variable is
expected to contain binary data.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284469
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to