I don't think the url is valid for Java, it probably is fetching an error
page. You can check it by opening in Java a stream with that url and saving
the result to disk.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Dianne Swinton [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 21:42
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] images
> 
> We are trying to put an image in a document. 
> We are using the Image.getInstance(URL) method. 
> Our URL is made up of:   " <http://>" + request.getServerName()+ ":" +
> request.getServerPort() + request.getContextPath() +
> "/images/ImageName.jpg"). 
> We are receiving a java.io.IOException: url is not a recognized
> imageformat. 
> The url is correct - we can hit the image with the url in the error
> message. 
> We started to receive this error when we put the request.getContextPath()
> method in the url - when it was hard-coded, the PDF was produced with the
> image. 
> Any ideas? 
> thanx, 
> dianne. 
>   << File: Card for Dianne Swinton >> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to