From: Elliot Temple Date: 2008-11-07T08:34:25+09:00 Subject: Re: Partial Read From URL Ara Howard wrote: > On Nov 6, 2008, at 4:24 PM, Elliot Temple wrote: > >> s = "" >> >> Thanks >> Elliot Temple >> -- >> Posted via http://www.ruby-forum. > > > maybe try > > > require 'open-uri' > > uri = ...... > > open(uri){|fd| fd.read 20000} I did try that, but it downloads the entire file in my tests. I tried it on a large file and it takes minutes to return, whereas my code returns in a couple seconds. Am I missing something? > ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] Elliot -- Posted via http://www.ruby-forum.com/.