我在普通J2EE应用程序中的工作示例:
// decode the image
InputStream inputStream = new File("/images/test.png");
BufferedImage barCodeBufferedImage = ImageIO.read(inputStream);
if (barCodeBufferedImage != null) {
LuminanceSource source = new BufferedImageLuminanceSource(barCodeBufferedImage);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
Result results = new MultiFormatReader().decode(bitmap);
//System.out.println("Decoded barcode image :: "+results.getText());
return results.getText();
}
我想在GAE中实现。但它阻止了ImageIO类和BufferedImage类。 任何人都可以在GAE上告诉我替代的ImageIO类吗?