public Drawable load(String url) throws IOException { String urlBase64 = getBase64(url); InputStream stream = cacheManager.retrieveDataStream(urlBase64); if (stream == null) { return null; } Drawable drawable = BitmapDrawable.createFromStream(stream, null); drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); return drawable; }