title: Download an image to local storage in Metro style apps
body: <p>In WinRT / C#, How do I download an image to a local folder to support caching of an online catalogue for offline use? is there a way to directly download the images and link the control to get them from the cache as a fallback?</p>
  
  <pre><code>    var downloadedimage = await HttpWebRequest.Create(url).GetResponseAsync();
      StorageFile imgfile = await ApplicationData.Current.LocalFolder.CreateFileAsync(
                          "localfile.png", CreationCollisionOption.FailIfExists);
  </code></pre>
  
  <p>What do I do next to store downloadedimage as localfile.jpg?</p>