Hi, 

I am currently developing a Java servlet that uses embedded FOP 
(0.20.5rc3a)under Tomcat 4.1.18 and am having a few problems with external
graphics and PDF generation. 

The external graphics in question are streamed using another servlet, which is
causing a few problems such as FOP not being able to determine the image 
type. 

The first problem I had was with using a relative URL. FOP could not find the

servlet and I thought this was because it was treating the value of the src 
attribute as a relative file rather than URL path. I got around this
temporarily by using the full URL although I would ideally not want to hard 
code this. 

The main problem I have is with FOP determining image type properly. The 
servlet that streams the image sets the content type of the response correctly
according to the image MIME type (stored in a metadata file). FOP is finding
the servlet but keeps giving me errors: 

Error while creating area : No ImageReader for this type of image 

External graphics work fine when I link to a static file. It is the dynamic 
output from the servlet that is causing the bother. 

I have tried adding servlet mappings to Tomcat such as "fetch/img.jpg" and 
"fetch.jpg" but FOP still complains that it can not find an ImageReader for 
that image type. Am I wrong in thinking that FOP determines which ImageReader

to use by reading the file extension of the URL? 

I would be gratefull for any suggestions. 

Cheers. 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to