[Zope] Helpppp - Problems with big files
Stefan H. Holek
stefan@epy.co.at
Wed, 30 Oct 2002 19:29:07 +0100
Try again with the chunks, this is the way to go. See OFS/Image.py for how
this is done by Zope's File and Image objects.
There are some Products that may help you with serving local files. LocalFS
and ExternalFile come to my mind.
Stefan
--On Mittwoch, 30. Oktober 2002 18:49 +0100 Antonio Beamud Montero
<antonio.beamud@agora-2000.com> wrote:
> Hi again:
> In a request I need to response a big file in the body of the response
> (around 1Gb or 1,5Gb).
> All I do is:
> response.setHeader('content-lenght',size)
> response.setHeader('content-Disposition',loc)
> f.open('file')
> data = f.read()
> response.write(data)
>
> sometime later Zope writes a "memory error". I have divided the data in
> little chunks too and make a lot of response.write calls, but the
> problem persist...
>
> How I can resolve this problem?... is very important...
>
> Thanks...
> --
> Microsoft merges technologoies:
> Windows CE + Windows ME + Windows NT = Windows CEMENT
>
> ----
> Antonio Beamud Montero
> Agora Systems S.A.
>
> http://www.agoratechnologies.com
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Those who write software only for pay should go hurt some other field.
/Erik Naggum/