Forum How do I...?

Trouble with image downloading

mynhardt
Hi

I'm specifying in my html template the following
http://someserver/adview.php?what=zone: ... n=ae1b6873
Based on the request parameters a image is streamed I guess back down
to the client

When converting the html doc to pdf using the java
addition with the folowing method convert(String htmlFile)

I see the following warning message displayed
"|Unknown image MIME type: image/jpeg;"

The image that i'm trying to download is of mime type image/jpeg.
I don't see the image in the generated pdf document, because of the error
Can the software handle this sort of image allocation?
mikeday
The warning message appears to be caused by the MIME type having a semicolon at the end of it: "image/jpeg;" rather than "image/jpeg". This is perfectly legal, but Prince 5.1 is a bit limited in its treatment of HTTP and MIME types.

Could you try formatting your document with the latest alpha version of Prince 6.0? This new version of Prince supports HTTP for all resources and should parse the MIME type correctly and recognise the image.
mynhardt
Hey Michael

Thank you for getting back to me so soon. I downloaded the alpha version
and it's fetching the images from the server without issues

Appreciate the help!!