From: Logan Capaldo Date: 2006-04-20T10:13:17+09:00 Subject: Re: MP3 download On Apr 19, 2006, at 9:04 PM, Xiaofeng Qiu wrote: > > require 'net/http' > req,body = Net::HTTP::get_response('*.*.net','/../1.mp3') > f = File.new("1.mp3", "w") > f.write body Judging by the fact you mentioned windows, I'm going to suggest you try this: f = File.new("1.mp3", "wb") # Open file in binary mode