Code example for InputStream

Methods: decodeStreamclose

0
	@Override 
	public Bitmap get(Response response) throws IOException {
		InputStream is = response.getInput();
		 
		try { 
			return BitmapFactory.decodeStream(is);
		} finally { 
			is.close();
			response.disconnect();
		} 
	} 
 
}