Hi
I am trying to use the method
com.lowagie.text.Image.getInstance(byte[] imgb)
I am collecting my byte[] data using
byte[] imageData = ((DataBufferByte)displayImage.getRaster().getDataBuffer()).getData(); <http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html>
//where displayImage is a BufferedImage
I keep getting a IOException : The byte array is not a recognised format.
I have used the alternative
com.lowagie.text.Image.getInstance(URL) method with the same URL that I construct the BufferedImage and it works.
Anyone else had this problem before ?
Cheers Rudy* *
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
