You could use cfexecute to launch a wget at the command line.   I have did 
this before.  Make sure that you use the time out options in the wget 
statement so you do not get caught with hung wget threads

cfexecute allows you to launch the command and return to the page.

The above method is not full proof because you do not know if the wget is 
successful or not.

The cfexecute could call a script file that would do the wget, check to see 
the wget was successful and then issue another wget to call the cf page to 
do the call back and the rest of the processing....

-Randy


----- Original Message -----


From: "Andy Matthews" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, March 19, 2007 9:33 AM
Subject: RE: downloading large files via cfhttp

>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.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272982
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