3

I want to use Glide (4.8.0) to manage my Bitmap locally. No URLs or HTTP connections

For saving: I need it to save to internal storage (along with memory cache of course), So I will have to provide a specific key.

For Loading: Get the bitmap from Glide by key.

I tried the following:

GlideApp.with(applicationContext)
                .load(myBitmap)
                .skipMemoryCache(true)
                .signature(ObjectKey(generateConversationKey(name, group)))
                .submit()

And Tried to load:

        GlideApp.with(binding.root.context).load(conversation.contactKey).into(binding.profile)

(I Must use keys as I'm loading bitmaps in service and no there is no UI releated) But with no luck.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Udi Oshi
  • 6,787
  • 7
  • 47
  • 65

0 Answers0