|
Hello,
I'm using FOP (0.20.5) for several month. It's a nice tool to generate dynamic pdf-documents in a web-environment (tomcat 4, java 1.4.1). Now I want to integrate charts which I generate in a servlet powered by the JFreeChart-classes (an open source project). The response of the servlet is "image/jpeg". I use it on a html-site in an image-tag. I thought it must be easy to use the fop-image-tag to reference this dynamic image on the pdf-page like: <fo:external-graphic src="" width="570"/> But no graphic is shown in my pdf-result. If I put the URL in the address-bar of my browser, the image is shown. Then I've saved the image (104 kB) on hard disk and referenced it absolute in the fo-document. Now I see the result as expected. But I still have to generate the jpeg-image dynamically ;-( Some searches in the log's only shows one little error without any other messages: HTTP-ERROR 302 (FOUND) w3.org describes this error as: "10.3.3 302 Found The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field. The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s). If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. " Does anybody knows what I'm doing wrong? Is it possible to referance an external image with a http-URL? Does someone use such dynamic images? Thanks in advance, Torsten |
- Re: PDF-Report with dynamic JPEG-Image Torsten Buslei
- Re: PDF-Report with dynamic JPEG-Image Chris Pratt
- Re: PDF-Report with dynamic JPEG-Image J.Pietschmann
