You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating bitmaps locally in app that I would like to cache and retrieve.
I think caching is working fine, as I am not getting an error result back:
val request = ImageRequest.Builder(context)
.memoryCacheKey("key")
.diskCacheKey("key")
.data(bitmap)
.build()
val result = imageLoader.executeBlocking(request)
However I am unsure how to pull the bitmap from the cache.
val request = ImageRequest.Builder(context)
.memoryCacheKey("key")
.diskCacheKey("key")
.build()
val imageResult = imageLoader.executeBlocking(request)
In this case I get an error stating The requests data is null
I manual cache and retrieval of local bitmaps possible? If so any ideas where I am going wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating bitmaps locally in app that I would like to cache and retrieve.
I think caching is working fine, as I am not getting an error result back:
However I am unsure how to pull the bitmap from the cache.
In this case I get an error stating The requests data is null
I manual cache and retrieval of local bitmaps possible? If so any ideas where I am going wrong?
Related to #1214 which is still unanswered.
Beta Was this translation helpful? Give feedback.
All reactions