From: Martin DeMello Date: 2005-06-05T04:05:30+09:00 Subject: Re: Help, how to download a binary file through Net::HTTP Erik Veenstra wrote: > > I'm new to Ruby. I want to download a binary file by > > Net::HTTP or other ways. I mimic the what's been done in the > > "Programming Ruby". But It failed. I want to know what the > > right way is! > > You can't download a file. But you can download the contents of > a file and write to a file yourself. And the latter might be a > problem if you open the file with "w" instead of "wb" for > binary files. A #download(source, dest) might not be such a bad addition to the API, at that. martin