From: Travis Whitton Date: 2004-04-01T01:14:22+09:00 Subject: Re: Strange rubyzip behaviour (Errno::EFBIG) > Travis, could you try something like this: > > require 'zip/zip' > > is = File.open("rubycode.zip", "rb") > is.seek(5, IO::SEEK_SET) > is.read irb(main):002:0> require 'zip/zip' .../zip/zip.rb:11: warning: already initialized constant Tempfile => true irb(main):003:0> is = File.open("rubycode.zip", "rb") => # irb(main):004:0> is.seek(5, IO::SEEK_SET) => 0 irb(main):005:0> is.read => "\000\000\000\010\000\275..." > Does that cause the problem? If it does, try without requiring > 'zip/zip'. Looks like it works fine. > Rubyzip doesn't do anything too weird with the files, all it does is > opening the archive file in "rb"-mode and seek-around and read a bit, > which is what the code fragment above is intended to mimic. I'll see if I can figure it out later when I have more time. Thanks, Travis