From: Brian Candler Date: 2003-04-09T17:34:36+09:00 Subject: Re: sending a file via http On Wed, Apr 09, 2003 at 08:37:02AM +0900, Andrew wrote: > Yes, this is using CGI. Your code seems to do almost what I want, but it > reads a few (10-20?) bytes and then stops. Is there something in the zip > file that 'read' would interpret as an end of file maybe and cause it to > stop? Oops, my fault: irb> a = File.read("/etc/passwd") NameError: undefined method `read' for File:Class Try: File.open("album.zip").read If your CGI generates errors like that, you should see them in your webserver's error log (e.g. /var/log/apache/logs/error_log or something like that) Cheers, Brian.