From: Dave Thomas Date: 2001-07-31T01:09:38+09:00 Subject: [ruby-talk:18820] Re: Net::HTTP (downloading an image) Tobias Reif writes: > Yep; I'm checking the downloaded files against the online one; the > downloaded ones are either completely garbled or consist of large white > areas, and are basically corrupted: they can't be opened in image > software. > WinMe, ruby 1.6.3 (2001-03-19) [i386-cygwin] Ah - you're on DOS. You need to open the output file in binary mode ("wb"), or every linefeed inthe output will be converted into "carriage return/linefeed"). Dave