@SuppressWarnings("ALL") public Bitmap decode(String path) { File file = new File(path); FileInputStream fis = null; byte[] bytes; try { bytes = new byte[(int) file.length()]; fis = new FileInputStream(file); fis.read(bytes); } catch (Exception e) { return null; } finally { FileUtil.close(fis); } return decodeViaLibrary(bytes); }