6

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

4

1 回答 1

1

Google App Engine 有一组有限的图像 API,您可以在此处找到这些文档。

基本操作包括裁剪、旋转、翻转、调整大小和一些颜色操作。

静态makeImage方法将从字节数组构建图像。

于 2013-06-20T16:20:42.423 回答