[Zope-CMF] Resource limits in Zope???
Dieter Maurer
dieter@handshake.de
Tue, 10 Dec 2002 20:15:53 +0100
Braun Brelin writes:
> I'm running into a strange problem with Zope. I've
> written an external method that takes, as it's
> argument, a postscript file and then calls
> /usr/bin/ps2pdf and translates it into a pdf file for
> viewing on the browser.
>
> The problem seems to be that the method only works for
> files of a certain size. I.e. small files work, files
> of > than 100K (or thereabouts) don't work.
For larger files, "file.data" is not longer a string
but a more complex structure (a sequence of blocks).
Use "str(file.data)" to explicitly convert it into a string.
If you files are really large, you want to learn about the more
complex structure and use it to avoid large memory consumption.
Dieter