title: Get URI for a stored file in StorageFile (WinRT)
body: <p>I'm building a metro app, and I'm trying to get a Uri of an Image after saving it in the StorageFile, this is my code:</p>
  
  <pre><code>StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync("samplefile.dat", CreationCollisionOption.ReplaceExisting);
  
  IRandomAccessStream raStream = await file.OpenAsync(FileAccessMode.ReadWrite);
  IOutputStream outStream = raStream.GetOutputStreamAt(0);
  DataWriter dw = new DataWriter(outStream);
  dw.WriteBytes(img); // I'm saving array of bytes
  await outStream.FlushAsync();
  </code></pre>
  
  <p>I read this article:</p>
  
  <p>and it says I can access the stored files using ms-appdata, so i tried this:</p>
  
  <pre><code>Uri uri = new Uri("ms-appdata:///samplefile.dat", UriKind.Absolute);
  </code></pre>
  
  <p>but it doesnt work</p>