From: Thomas Wieczorek Date: 2008-03-25T21:53:25+09:00 Subject: Re: Remote files? On Tue, Mar 25, 2008 at 11:30 AM, wrote: > > The first file is a plain-text file and the other is a binary file > (photo). > Take a look at http://www.rubynoob.com/articles/2006/8/21/how-to-download-files-with-a-ruby-script Notice "wb" in _open("fun.jpg", "wb")_, it is important, when you download images on windows platforms otherwise it will open them in ASCII mode.