protected InputStream getStreamFromFile(String imageUri, Object extra) throws IOException {
		String filePath = Scheme.FILE.crop(imageUri);
		if (isVideoFileUri(imageUri)) {
			return getVideoThumbnailStream(filePath);
		} else {
			BufferedInputStream imageStream = new BufferedInputStream(new FileInputStream(filePath), BUFFER_SIZE);
			return new ContentLengthInputStream(imageStream, (int) new File(filePath).length());
		}
	}
protected InputStream getStreamFromFile ( String imageUri , Object extra ) throws IOException { String filePath = Scheme . FILE . crop ( imageUri ) ; if ( isVideoFileUri ( imageUri ) ) { return getVideoThumbnailStream ( filePath ) ; } else { BufferedInputStream imageStream = new BufferedInputStream ( new FileInputStream ( filePath ) , BUFFER_SIZE ) ; return new ContentLengthInputStream ( imageStream , ( int ) new File ( filePath ) . length ( ) ) ; } }
Retrieves {@link InputStream} of image by URI (image is located on the local file system or SD card).

@param imageUri Image URI
@param extra    Auxiliary object which was passed to {@link DisplayImageOptions.Builder#extraForDownloader(Object)
DisplayImageOptions.extraForDownloader(Object)}; can be null
@return {@link InputStream} of image
@throws IOException if some I/O error occurs reading from file system