How to retrieve and save drawable image name in InputStream using MainActivity.this. getResources(). openRawResource (R.drawable.image_name).
In this tutorial we are storing image path with its name into Input Stream so we can done further process on our selected image. So here is the complete step by step tutorial for Get/Store drawable resource image path into InputStream.
How to Get/Store drawable resource image path into InputStream.
InputStream inputstream; inputstream = MainActivity.this.getResources().openRawResource(R.drawable.img_name);