title: How can I create a StorageFile object from URI?
body: <p>I'm working on a HTML+JS app.
  I have to launch image file from Internet in native photo app.</p>
  
  <p>Code to launch:</p>
  
  <pre><code>var uri = new Windows.Foundation.Uri("http://someuri.com/somefile.JPG");
      Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri).then(
        function (file) {
            // Launch the retrieved file using the default app
            Windows.System.Launcher.launchFileAsync(file).then(
              function (success) {
                  if (success) {
                      // File launched
                  } else {
                      // File launch failed
                  }
              }
            );
        }
      );
  </code></pre>
  
  <p>There is problem with <strong>file</strong> variable should be a <a href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefile.aspx" rel="nofollow">StorageFile class</a>. I can't create this class from URI. Which method should I choose (look into link)?</p>
  
  <p>Method <strong>getFileFromApplicationUriAsync</strong> only gets files from other application, not from web.<br>
  Method <strong>createStreamedFileFromUriAsync</strong> isn't available on WP 8.1.<br>
  Method <strong>getFileFromPathAsync</strong> doesn't support URIs.  </p>