Cannot rely on Uri.getPath to return absolute path to create File object. Instead get the inputstream and create Bitmap first.