The Android version of the SDK cannot read directly from image files but it can read from a bitmap using code similar to the following: Barcode barcode = new Barcode(); // Load your image file into a bitmap int width = bitmap.getWidth(); int height = bitmap.getHeight(); byte[] rawBytes = new byte[width * height * 4]; …
