• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IOException : logo.png is not a recognized imageformat

 
Ranch Hand
Posts: 81
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

java.io.IOException: _https://<servername>/<AppContext>/images/Dealer_logo.png is not a recognized imageformat



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
 
Greenhorn
Posts: 21
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure the path of image located in your testing environment
 
Santhosh ayiappan
Ranch Hand
Posts: 81
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The image file is within the ear. It is same across all the environments

Regards
Santhosh
 
reply
    Bookmark Topic Watch Topic
  • New Topic