My Working example in normal J2EE application:
// 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();
}
Same I want to achieve in GAE. But it blocks the ImageIO class and BufferedImage class. Can anybody tell me alternative of ImageIO class on GAE??
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.