[Zope] How to serve huge file/document?

Dieter Maurer dieter@handshake.de
Sat, 8 Feb 2003 12:05:32 +0100


Gilles wrote at 2003-2-5 16:58 -0600:
 > Sorry if this is well known but how can I serve big file with zope?
 > 
 > Big is more than 1Gb, stored on the fileSystem and accessed with the LocalFs
 > product.
 > If I try to get a big file, it is fully reared in memory (I think) before
 > being send, which cause unacceptable performance.
Others already told you about the right solution (--> Apache).

You can also use "RESPONSE.write".
Note that you *must* set a correct "Content-Length" header.
Search archives and embedded online help for details.


Dieter