how can read data in image uri

Posted by satyamurthy on Stack Overflow See other posts from Stack Overflow or by satyamurthy
Published on 2010-04-05T13:22:50Z Indexed on 2010/04/05 13:33 UTC
Read the original article Hit count: 257

Filed under:

hi sir

i am implementing image upload then i got image uri how can read data in image uri

File Img = new File(selectedImage.getPath()+inFileType);
                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(); 

this code implementing i got uri how can read data

© Stack Overflow or respective owner

Related posts about android