How to access StorageFile via local uri RRS feed

  • Question

  • I'm using a StorageFile to save a bitmap to the local file system. If i set a breakpoint, I can find the actual path on my local system and open that. I can see the bitmaps being saved.

    StorageFile sampleFile = await storageFolder.CreateFileAsync("sample.png");

    What I'm not sure of is how to get the uri of that image so I can schedule a tile notification and use that image on a Live tile.

    I've tried "ms-appx:///local/images/sample.png" and "ms-appx:///images/sample.png" with no luck.

    I did notice an example showing images in the project (added to project as Content, not generated live) and they seem to have a scale-180 in the filename which seems to automatically handle scaling. Can't find this documented anywhere.

    Thursday, October 4, 2012 3:11 AM


  • Try ms-appdata:///local/images/sample.png
    • Proposed as answer by Chris Guzak Thursday, October 4, 2012 8:50 PM
    • Marked as answer by Min ZhuMember Monday, October 22, 2012 2:40 AM
    Thursday, October 4, 2012 4:37 AM