Referencing the URI RRS feed

  • Question

  • My app store the image path in database and the image in the documents folder. If I am retrieving and showing it in the gridview, how do I reference it in the URI scheme ? Thanks.

    Thanks, Smiths

    Wednesday, August 21, 2013 1:48 AM


All replies

  • There are no URIs for the documents folder. You will need to access items programmatically via a StorageFile.


    Wednesday, August 21, 2013 1:51 AM
  • Which means I have to set the location, cause I want it to dynamically populate out. Or is there other way to store and retrieve with no problem ?

    Thanks, Smiths

    • Edited by Reid Smiths Wednesday, August 21, 2013 3:08 AM Edit
    Wednesday, August 21, 2013 2:45 AM
  • If I reference to the local computer Picture folder ? Thanks.

    Thanks, Smiths

    Friday, August 23, 2013 9:21 AM
  • You will need to access items programmatically via a StorageFile.

    You cannot use URIs for local files outside of your install (ms-appx) and application data (ms-appdata) folders.


    Friday, August 23, 2013 9:31 PM
  • Can you show me a site that contains the example ? Thanks.

    Thanks, Smiths

    Sunday, August 25, 2013 12:45 PM
  • There is a "Samples" link at the top of this page that has many samples. There are also examples in the documentation here.

    Search for file access and you'll find  File access sample (Windows 8) 

    Sunday, August 25, 2013 3:09 PM
  • Rob, I managed to do it. But sometime it won't display. Why?


    Thanks, Smiths

    Monday, August 26, 2013 4:01 AM
  • It's going to take troubleshooting to figure out why sometimes an image does not appear. My recommendation is that you start a new thread and post the actual data that you are using so we can look at it.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, August 26, 2013 3:12 PM
  • I mean the GroupedItemPage sometime can see sometime cannot see. But the other page like when I click on the blank image to itemdetailspage the picture is there.



    Thanks, Smiths

    • Edited by Reid Smiths Tuesday, August 27, 2013 9:25 AM Insert screenshot
    Tuesday, August 27, 2013 9:18 AM