I am trying to read a gif image using the following line of code:
Image.getInstance(Toolkit.getDefaultToolkit().getImage(gifImagePath),null);
Sometimes, this doesn't work spewing the following error trace:
ERROR [RMI TCP Connection(102)-192.168.0.73] iv.core.ReportGenerator - [B *****
java.lang.ClassCastException: [B
at com.lowagie.text.Image.getInstance(Unknown Source)
at com.lowagie.text.Image.getInstance(Unknown Source)
at com.intruvert................
Why does this happen? Any idea? Please help.
Thanks
---------------------------------------------------------------------------------
Ramakrishna Kuppa | October 2002
Ph: 408 434 8339 | Ashwayuja Chitrabhanu 5104
http://www.intruvert.com