From: warlokk Date: 2006-08-02T14:55:04+09:00 Subject: Re: newbie:: issue while downloading binary from HTTP Hi Daniel, thanks :-) Was in windows. You got the nail on the head. Had missed out the binary modifier when reading the docs... :-( Regards, Ashish Daniel Harple wrote: > On Aug 2, 2006, at 1:35 AM, mataal@gmail.com wrote: > > > Any ideas where these extra bytes are coming from? Do it need to > > 'chomp' my response chunks? > > Are you on Windows? You may need to write the file in binary mode: > > File.open(..., 'wb') do |f| > ... > end > > -- Daniel