The logfile from wget shows the header response: --10:12:10-- http://localhost:8080/exist/servlet/db/logo.jpg => `logo.jpg' Resolving localhost... 127.0.0.1 Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 1 HTTP/1.1 200 OK 2 Date: Mon, 06 Sep 2004 08:12:10 GMT 3 Server: Jetty/4.1.4 (Windows XP 5.1 x86) 4 Servlet-Engine: Jetty/4.1.4 (Servlet 2.3; JSP 1.2; java 1.4.2_05) 5 Content-Type: text/xml; charset=UTF-8 6 Connection: close
0K .......... ...... 16.55 MB/s 10:12:10 (16.55 MB/s) - `logo.jpg' saved [17351] --10:17:44-- http://localhost:8080/exist/logo.jpg => `logo.jpg.1' Resolving localhost... 127.0.0.1 Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 1 HTTP/1.1 200 OK 2 Date: Mon, 06 Sep 2004 08:17:44 GMT 3 Server: Jetty/4.1.4 (Windows XP 5.1 x86) 4 Servlet-Engine: Jetty/4.1.4 (Servlet 2.3; JSP 1.2; java 1.4.2_05) 5 X-Cocoon-Version: 2.1.3 6 Content-Type: image/jpeg 7 Last-Modified: Tue, 21 Jan 2003 13:28:46 GMT 8 Content-Length: 17351 9 Connection: keep-alive 0K .......... ...... 100% 16.55 MB/s 10:17:44 (16.55 MB/s) - `logo.jpg.1' saved [17351/17351] --10:20:51-- http://localhost:8080/exist/xmldb/db/logo.jpg => `logo.jpg.2' Resolving localhost... 127.0.0.1 Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 1 HTTP/1.1 200 OK 2 Date: Mon, 06 Sep 2004 08:20:51 GMT 3 Server: Jetty/4.1.4 (Windows XP 5.1 x86) 4 Servlet-Engine: Jetty/4.1.4 (Servlet 2.3; JSP 1.2; java 1.4.2_05) 5 X-Cocoon-Version: 2.1.3 6 Content-Type: image/jpeg 7 Vary: Host 8 Accept-Ranges: none 9 Connection: close 0K .......... ...... 16.55 MB/s 10:20:51 (16.55 MB/s) - `logo.jpg.2' saved [17351] The second link (http://localhost:8080/exist/logo.jpg) works fine when creating a PDF document with the FOP servlet. The other ones don't work and the only difference is the content length attribute in the HTTP header from the second link. So that causes the problem. I don't have an idea how to fix this. All suggestions are appreciated! "J.Pietschmann" <[EMAIL PROTECTED]> 09/02/2004 09:27 PM Please respond to users To: [EMAIL PROTECTED] cc: (bcc: Eelke Toonstra/BST/MS/PHILIPS) Subject: Re: FOP PDF with images from eXist database Classification: [EMAIL PROTECTED] wrote: > When I access the same image within a normal HTML file, it works fine: > <img src="http://localhost:8080/exist/servlet/db/test.gif"> Use a command line tool like wget to access the URL and download the content into a file. Is the downloaded file ok? If not, check whether the sevlet needs cookies, has access protections, or requires a specific user agent. If the donwloaded content was ok, use wget to dump the HTTP headers into a file. Check whether content type and length have been set properly. Finally, try the same with a JPEG file. GIF files are processed by some AWT classes, which is known to go haywire occasionally for (invalid) GIFs downloaded over HTTP, while the same works if the content comes from a file. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]