hello all i've a python product class which inherits from "file" now if i upload a few pdf files (~1MB) and i try to view them with the browser and this doesnt work with all instances the browser loads something but it doesnt start acrobat reader, it displays an empty window i set the content_type to "application/pdf" i read somewhere that the id has to end with .pdf - so that acrobat checks the file - but this wasnt the problem is it possible, that the files are too big or corrupted ?? because sometimes it works there is only a problem with .pdf files - with others like word files it works just fine even if the file is 800kb big. would it be better to store such files in the filesystem instead in zodb ?? please help - thanks in advance - bernd
On Tue, 10 Jul 2001 09:55:10 +0200 you wrote:
the browser loads something but it doesnt start acrobat reader, it displays an empty window i set the content_type to "application/pdf"
I have not experienced this. I suggest trying the same URL with a simple client (lynx/GET) so that you can get the data to a file for examination.
i read somewhere that the id has to end with .pdf - so that acrobat checks the file - but this wasnt the problem
This I have experienced. The problem is that the dumb clients aren't configured correctly. The behavior is different, though. The client should pop up a warning saying it doesn't know what to do with application/pdf.
is it possible, that the files are too big or corrupted ??
Download to a file and check.
would it be better to store such files in the filesystem instead in zodb ??
I have handled large PDF files from the ZODB. They should be no different than any other static content (unless you're trying to use byte-range serving). --kyler
Kyler B. Laird wrote:
On Tue, 10 Jul 2001 09:55:10 +0200 you wrote:
the browser loads something but it doesnt start acrobat reader, it displays an empty window i set the content_type to "application/pdf"
I have not experienced this. I suggest trying the same URL with a simple client (lynx/GET) so that you can get the data to a file for examination.
i read somewhere that the id has to end with .pdf - so that acrobat checks the file - but this wasnt the problem
This I have experienced. The problem is that the dumb clients aren't configured correctly. The behavior is different, though. The client should pop up a warning saying it doesn't know what to do with application/pdf.
is it possible, that the files are too big or corrupted ??
Download to a file and check.
would it be better to store such files in the filesystem instead in zodb ??
I have handled large PDF files from the ZODB. They should be no different than any other static content (unless you're trying to use byte-range serving).
--kyler
_______________________________________________ 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 )
i downloaded the pdfs to a file - it works this way it seems that its an adobe acrobat issue ??
participants (3)
-
bdorn@vup.at -
Kyler B. Laird -
zope-mailinglist