In android, when you get the uri from the gallery, it's value will be start with `content://blahblahblah.blahblah.format`, but if you get the uri from your phone's camera, it will be starting with `file:///`

Below is what I want to do:

```
private File uriToBitmap(Uri uri, int maxSize) throws FileNotFoundException {
  try {
        imageStream = getContentResolver().openInputStream(uri);
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    }
    Bitmap claimBitmap = BitmapFactory.decodeStream(imageStream);
   }

```

In this method I would like to pass a file type uri and use getContentResolver() function, but unfortunately the claimBitmap is a `null`, does that means the getContentResolver() method doens't accept the file type uri? Please help.