Although it is true that the other answers here will work, they really aren't solutions that should ever be used in production code. (at least not without modification) Problems The problem with these answers is that if they are implemented as is and are not called from a background thread, they will block the main thread while downloading and saving the image. This is bad. If the main thread is b