[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: sending a file via http
From:       "Jason Voegele" <jason () jvoegele ! com>
Date:       2003-04-10 14:31:56
[Download RAW message or body]

Andrew wrote:
> This file is just over 31MB, so that's definitely not all of it.
>
> My OS is windows if that matters.

In fact it does.  Make sure you open the file in binary mode:

f = File.open("data.zip", "rb") {|f| f.read}

-- 
Jason Voegele
"We believe that we invent symbols. The truth is that they invent us."
    -- Gene Wolfe, The Book of the New Sun



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic