Loading images from application assets with Glide library

I have switched my current project from Picasso to Glide. However, I cannot manage to load an image from the application assets. Is that even possible?

Sample code:

String assetPath = "file:///android_asset/flags/FR.jpg";

I have also tried the load(String) method without success and I don’t see a load method taking for instance an InputStream or a FileDescriptor I could have obtained with the AssetManager class.

That exact same code was working in Picasso.

Glide is working properly in the rest of the app and loading nicely remote images.


Works with Glide.with(xxx).load(xxx).asBitmap()

As stated in the GitHub issue I had opened at the time I faced that issue.