Having more problems now, I am trying to output the contents of cfchart to a
file which works when I use CF7 but not CF6.1. I have tried the following to
no avail:
<cfchart chartheight="210" chartwidth="320" format="jpg" name="pic">
<cfchartseries type="bar">
<cfchartdata item="blah" value="10"/>
</cfchartseries>
</cfchart>
<cffile action="write" file="#ExpandPath('foo1.jpg')#" output="#pic#"
addNewLine="false">
<img src="foo1.jpg"/>
<cffile action="write" file="#ExpandPath('foo2.jpg')#" output="#ToBase64(pic)#"
addNewLine="false">
<img src="foo2.jpg"/>
<cffile action="write" file="#ExpandPath('foo3.jpg')#"
output="#ToBinary(ToBase64(pic))#"
addNewLine="false">
<img src="foo3.jpg"/>
The files get created but are not image files (cannot be opened with an
image viewer) - the first cffile works in CF7, the other two were just
experiments after an hour of googling, I assume they don't work in cf7
either.
Any ideas?
Thanks,
Dom
--
Blog it up: http://fusion.dominicwatson.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294670
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4