Gilson Nascimento Del Rei wrote:

I newbie question...
Why we have that read the pdf file ?

FOP's output is a stream and in order to set Content-Length you have to read the whole stream to into memory or into a temporary file.

 Doesn't is a simple link sufficient for
execute it ?

Link to where? You can save output stream to a file and redirect browser to the file, reasonable solution.

I mean isn't it a browser work ?

That's right, but browser requires content length according to http rfc, so either servlet or web browser (in the case of redirecting to a temporary file)
have to set it in http header.

Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

Reply via email to