new String(codeDecoder.decode(new MyQRCodeImage(bufferedImage)),"gb2312");报错数组下标越界异常
String result=new String(codeDecoder.decode(new MyQRCodeImage(bufferedImage)),"gb2312");
这段报错
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at jp.sourceforge.qrcode.pattern.FinderPattern.getWidth(FinderPattern.java:525)
at jp.sourceforge.qrcode.pattern.FinderPattern.findFinderPattern(FinderPattern.java:49)
at jp.sourceforge.qrcode.reader.QRCodeImageReader.getQRCodeSymbol(QRCodeImageReader.java:172)
at jp.sourceforge.qrcode.QRCodeDecoder.decode(QRCodeDecoder.java:141)
at jp.sourceforge.qrcode.QRCodeDecoder.decode(QRCodeDecoder.java:70)
at com.imooc.qrcode.ReadQRCode.main(ReadQRCode.java:19)
是为什么啊?照着视频类敲的啊?