Alternative to ImageIO class on GAE?
Asked Answered
L

1

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

Lavallee answered 20/6, 2013 at 11:51 Comment(1)
Possible duplicate of How to read a image url in google appengine using javaLaflam
G
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.

Guttle answered 20/6, 2013 at 16:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.