The image mystery: How to display an image downloaded via $http get

Hi all,

I have a very trivial but for me frustrating problem. While it is clear to me that I can display an image via ng-src simply passing the url of the picture, I do not understand how I can display an image that I first download from the Web via $http. This is important to make the app working offline.

I have created a codepen in which you will see that the same image is visible by passing the url, but not visible if I download it first. Why?

Thanks for any help!

I think this method is what you’re looking for :smile:

Hi @iwantwin, thanks for the quick response. I have tried it, and uploaded the codepen with the code you suggested but it raises errors :frowning: