2014年8月5日 星期二

android Not a DRM File, opening notmally


        public static Bitmap openBinImg(String path){
            //String selectedImage = Environment.getExternalStorageDirectory().toString() + "/" + seq;
            //Log.d("selectedImage",""+selectedImage);
              Bitmap bitmap = null;
              File newFile = new File(path);
              FileInputStream fis = null;
            try {
                fis = new FileInputStream(newFile);
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
              bitmap = BitmapFactory.decodeStream(fis);
              return bitmap;
        }

沒有留言:

張貼留言