I think you're probably asking for trouble. I tried using Coldfusion to
download a 7meg SQL file once and it crashed out every time. 

-----Original Message-----
From: Dov Katz [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 17, 2007 7:46 PM
To: CF-Talk
Subject: downloading large files via cfhttp

If I need to cfschedule a 10-40 mb download, is cfhttp going to buffer the
entire input to memory if I specify a file to write it to? Also concerned
about losing an available thread. I'm trying to basically do a "wget" in
coldfusion and don't want to lose an available thread while I do it.

Here's my planned.  Is something like this available somewhere?  What do you
think?

Cfx_wget url=xxxx destinationFile=yyyy. Callbackurl=localhost/callback.cfm

Calling this gets a uuid 


Then I write a java class to kick off a thread (thread name is the uuid the
cfx returned) to write a url input stream to the specified file and then hit
the "callback" url when done, with all the params of the tag call and the
http status code of the get operation.  

I can also ask this thread what its status is and/or cancel it by looking
for the thread by its uuid name. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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

Reply via email to