My client's primary supplier makes their product list available via
..zip file.  I want to grab this .zip file and save it to the server so
that I can then unzip it and process it for import.  Problem is, I
can't get it to work.  Here's my code:

<cfhttp url="http://[domainname]/diagrams/Downloads/cycling.zip";
getasbinary="auto" method="get" result="qfile"></cfhttp>
<cffile action="write"
file="#getdirectoryfrompath(expandpath(CGI.script_name))#products.zip"
output="#tobinary(trim(qfile.filecontent))#">

Problem is, I'm getting a "ByteArray objects cannot be converted to
strings." error.

Any ideas what I'm missing here?

Thanks,

Pete

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315403
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