String imagePath = "http://localhost/myImage.gif";;
com.lowagie.text.Image img=null;
img = com.lowagie.text.Image.getInstance( imagePath );

try like above...


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Suprigya
Sent: Thursday, June 10, 2004 4:42 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Error in getting Image Object


Hello,

I am using iText-1.00 and I get the error when I try to create Image object.

String imagePath = "http://localhost/myImage.gif";;
Image img = Image.getInstance( imagePath );

I get the following error:
java.io.IOException: http://localhost/myImage.gif is not a recognized
imageformat.
        at com.lowagie.text.Image.getInstance(Unknown Source)
        at com.lowagie.text.Image.getInstance(Unknown Source)

However, if I copy/paste this string directly on the browser, image is
displayed properly.

Would anyone have an idea what is causing this error?
Thanks,
Suprigya



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to