How to serve huge file/document?
Hello 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. ??? Gilles
unless you have some security issues realted to users who can or cannot download the file, why dont you serve it out of apache, ie put the file in the apache document root and redirect from zope to the complete url. hth AM Gilles wrote:
Hello
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.
???
Gilles
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
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
participants (3)
-
AM -
Dieter Maurer -
Gilles