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

Amit
  • 71
  • 4
  • Possible duplicate of [How to read a image url in google appengine using java](https://stackoverflow.com/questions/6856552/how-to-read-a-image-url-in-google-appengine-using-java) – Suma Oct 23 '17 at 20:02

1 Answers1

1

Google App Engine has a limited set of Image APIs which documentation you can find here.

The basic operations include cropping, rotation, flipping, resizing and some color manipulation.

The static makeImage method will build an Image from a byte array.

Alain
  • 6,044
  • 21
  • 27