how to retrieve data in image uri in sd card to read data in byte convertion
- by narasimha
hi sir
i am implementing upload image click upload button then select into sdcard images i am getting uri
File Img = new File(selectedImage.getPath());
System.out.println("2............."+Img);
FileInputStream is = null;
try
{
is = new FileInputStream(Img);
is.read(buffer);
BufferedInputStream bis = new BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(is);
bis.close();
is.close();
i got in image uri how can retrieve data in particular image uri in image path above code Img i am new in android then some suggition give me some reply