Hi,
I have problem implementing the code which calls the file on the hard disk.
my code looks like this
BufferedImage brImg = null;
brImg = ChangeImgFormat.chg2BuffImage("images\DEFAULT_RGB24_.tif");
when my application is started for the first time, above code works fine and later i call the same code but other file
brImg = ChangeImgFormat.chg2BuffImage("images\ERROR_RGB24_.tif");
i get following error
java.io.FileNotFoundException: images\DEFAULT_RGB24_.tif (The System cant find the file specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:200
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:94)
at com.sun.media.jai.codec.FileSeekableStream.<init>(FileSee
java:94)
at tks.util.ChangeImgFormat.chg2BuffImage(ChangeImgFormat.ja
at tks.MainFrame.scanChannels(MainFrame.java:549)
at tks.MainFrame.startScanning(MainFrame.java:851)
at tks.MainFrame.run(MainFrame.java:251)
at java.lang.Thread.run(Thread.java:536)
please help me while iam running short of time
Thank you