Hi,
I am trying to use ImageIO.jar to view documents.
I have been able to view .tiff, .bmp, .jpeg and .png files.
However when I try to open files with extensions .pdf, .docx, .txt I get an error-
Exception in
thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at org.taps.cm.View.main(View.java:27)
The code I am using is -
I am guessing the viewers does not support these files.
Is there any other viewers I can use to open such files.
Thanks.