From: "Thomas B." Date: 2008-09-03T22:37:32+09:00 Subject: Re: downloading files Marcelo Barbudas wrote: > Hi, > > Which is the proper way to download a binary file? > > Trying: > open(temp_path,"w").write(open(http_path).read) > > returns truncated files > > Cheers, > M. Without Mechanize, it's in fact better to do it in two lines: data=open(remote).read File::open(local,"wb"){|f| f<