日期:2014-05-20  浏览次数:20951 次

读取大图片总是不行~~~高手执教!!!!
BufferedImage   image   =   null;

image   =   ImageIO.read(new   File(jTextChemin.getText()));


错误:
javax.imageio.IIOException:   codecLib   error

at   com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.decode(CLibJPEGImageReader.java:130)

at   com.sun.media.imageioimpl.plugins.clib.CLibImageReader.getImage(CLibImageReader.java:497)

at   com.sun.media.imageioimpl.plugins.clib.CLibImageReader.read(CLibImageReader.java:575)

at   javax.imageio.ImageIO.read(ImageIO.java:1400)

at   javax.imageio.ImageIO.read(ImageIO.java:1286)


请教如何读取大图片(5000px*4400px)

------解决方案--------------------

!!!!~~~~~~
图太大,暂时没解决办法~

以前别人问过,也没找到解决方案

ㄍㄊㄆ

------解决方案--------------------
估计你只能加内存了,
我电脑配置2G内存,读4000*4000的50M大小的图没问题,
但5000*5000的就读不了~~