File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes IOException  : logo.png is not a recognized imageformat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "IOException  : logo.png is not a recognized imageformat" Watch "IOException  : logo.png is not a recognized imageformat" New topic
Author

IOException : logo.png is not a recognized imageformat

Santhosh ayiappan
Ranch Hand

Joined: Jan 30, 2007
Posts: 70

Hi,

I have a web application when clicking on a link it would generate a pdf document. I am using iText to generate the PDF document.

I am using the com.itextpdf.text.Image.getInstance to insert the logo of the customer onto the pdf document.


It works perfectly in the local desktop, but when we promoted the code to the Testing Environment we are getting an exception as below.



But I am able to view the image in the browser when i directly hit the url.

Assuming it could be a issue with the Linux, I deployed the application on another Dev box which also has Linux, but to my surprise it worked perfectly fine on that machine. Now the issue is only on our Testing environment.

Any thoughts on this is really appreciated !!

Regards
Santhosh
Pene charl
Greenhorn

Joined: Jun 14, 2011
Posts: 16

Make sure the path of image located in your testing environment


Regards:Prince Charles
http://princecharl.blogspot.com
Santhosh ayiappan
Ranch Hand

Joined: Jan 30, 2007
Posts: 70

The image file is within the ear. It is same across all the environments

Regards
Santhosh
 
 
subject: IOException : logo.png is not a recognized imageformat
 
Threads others viewed
Configuring Tomcat 5 on Win2K and Linux
how to make fusion chart image
Generating PDF from jsp using iText
Showing image from a JAR on a JSP page
how to avoid image scaling with apache fop
developer file tools