Alternative to ImageIO class for GAE?

My working example in a regular 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(); } 

I want to achieve the same thing in GAE. But it blocks the ImageIO class and BufferedImage class. Can someone tell me an alternative to the ImageIO class on GAE ??

+6
source share
1 answer

The Google App Engine has a limited set of image APIs, the documentation of which you can find here .

Key operations include cropping, rotating, flipping, resizing, and some color manipulations.

The static makeImage method will create an image from an array of bytes.

+1
source

Source: https://habr.com/ru/post/947726/


All Articles