I first store an image in internal storage this way:

```
FileOutputStream fos = context.openFileOutput("myimage.png", Context.MODE_PRIVATE);
bitmap.compress(CompressFormat.PNG, 100, fos);
fos.close();

```

And then I display it in an `ImageView` this way:

```
File filepath = context.getFileStreamPath("myimage.png");
Uri uri = Uri.parse(filepath.toString());
myImageView.setImageUri(uri);

```

But the image never appears in the `ImageView`. I cannot use `setImageBitmap()` here due to some constraints. Can anyone tell me where am I going wrong ?

Thanks for your help!