cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: ResourceReader and pdf
Date Wed, 04 Dec 2002 08:55:09 GMT
We have the same problem with Cocoon 2.0.1. Do you have a current 
version? First tests with 2.0.3 were okay, even if the code, you 
mention, has not changed. But maybe the tests only were okay by accident?

Joerg

Lars Steiger wrote:
> hi everybody
> 
> i had problems getting a pdf (as file) through the cocoon ResourceReader. on
> the browser side always a message box appeared with the text "The file is
> damaged and could not be repaired.".
> 
> after i inserted the method "shouldSetContentLength" into ResourceReader
> (overriding AbstractReader method) ...
> 
>     /**
>      * Test if the component wants to set the content length
>      */
>     public boolean shouldSetContentLength() {
>         return true;
>     }
> 
> ... everything worked fine. the problem was, that in AbstractReader the
> method returns false.
> 
> is this fix totally wrong ?
> 
> 
> greetings,
> lars


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message