错误-IIOException ImageIO.read [英] Error - IIOException ImageIO.read

查看:79
本文介绍了错误-IIOException ImageIO.read的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序正在将子图像查找为jpeg图像..

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..


请帮助我纠正此错误...

谢谢和问候,
J.Margret


Please Help me to correct this error...

Thanks and Regards,
J.Margret

推荐答案

那是因为您的家用计算机上没有文件"Z:/DIPPrograms/Images/11.jpg",或至少不在同一路径中.
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.


这篇关于错误-IIOException ImageIO.read的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆