[iText-questions] Image java.io.IOException: The byte array is not a recognized imageformat.

2014-07-29 Thread dave673
I have a problem to display an picture in pdf file. The purpuse is to create a pdf from an application deployed on tomcat server but when I declare Image image = Image.getInstance("src/./path .jpg"); itext looks up image in "bin" repository of tomcat server. I try to serialize picture,

Re: [iText-questions] Image java.io.IOException: The byte array is not a recognized imageformat.

2014-07-29 Thread dave673
Image image = Image.getInstance(Thread.currentThread().getContextClassLoader().getResource("picture.jpg")); -- View this message in context: http://itext-general.2136553.n4.nabble.com/Image-java-io-IOException-The-byte-array-is-not-a-recognized-imageformat-tp4660178p4660179.html Sent from the i