scan QR code from sd card using zxing not working in android
===

        String imageInSD = Environment.getExternalStorageDirectory().getAbsolutePath()+"temp.jpg";
        Bitmap photoTmp = BitmapFactory.decodeFile(imageInSD);
        LuminanceSource source = new RGBLuminanceSource(photoTmp);
        BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
        Reader reader = new MultiFormatReader();
        Result result = reader.decode(bitmap);

This is my code .. but its not scanning image.. but when I capture the same image and scan it works... 