From: thefed Date: 2008-01-01T08:56:46+09:00 Subject: Re: Best way to download >1GB files On Dec 31, 2007, at 5:15 PM, Tim Hunter wrote: > Not precisely what you asked for, but this is how ara t. howard > told me to download large files, using open-uri. This gets one 8kb > sized chunk at a time: > > open(uri) do |fin| > open(File.basename(uri), "w") do |fout| > while (buf = fin.read(8192)) > fout.write buf > end > end > end But doesn't open-uri download the whole thing to your compy? I was about to use it, but then I ran it in irb and saw it returned a file object. -------------------------------------------------------| ~ Ari seydar: it's like a crazy love triangle of Kernel commands and C code