Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My program is finding sub images as a jpeg image..

BufferedImage image = ImageIO.read(new File("Z:/DIPPrograms/Images/11.jpg"));
SubImages test = new SubImages(image);

Successfully executed and I got the answer..

But in my home same code displays an error message:
Error: IIOException ImageIO.read(new...)
Can't able to read input file..

Please Help me to correct this error...

Thanks and Regards,
J.Margret
Posted
Updated 1-Jun-10 19:54pm
v2
Comments
[no name] 2-Jun-10 3:57am    
What is the exact message received from the exception; that should tell you what the problem is.

1 solution

That's because you don't have the file "Z:/DIPPrograms/Images/11.jpg" at your home computer, or at least not in the same path.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900