Windows Phone Series: Image Caching Library - JetImageLoader

Recently on a client project, I had a requirement to cache images locally on the phone and then load it from there from subsequent requests. Initially I had plans for custom implementing this using sqlite and custom code. While googling for this, I came across an awesome custom library that solved my problem with just a few lines of code – JetImageLoader by Artem. This is available via nuget, making it easy to install

Integrating this library into any existing project is even easier and is just about using a converter on your Image datatemplate as shown below.

This is all you need to do to have all the images that are bound with the converter to be cached locally on to the Memory and storage. You could also choose to cache it to only memory or storage. Do check this out in case you want to have images cached locally.

The nuget is for Windows 8 library, but there is also a version for WP7.1 avaialble on Github (which apparently is a pull request from me, indeed my very first on Github that got merged)

About Rahul

Rahul Nath is a technology consultant, father, speaker and Microsoft Readify employee. He is a former MCCA and enjoys photography and cycling.