Reputation: 357
Using this previous question as motivation, I would like to temporarily store images and videos in Isolated Storage. My application (written in WPF/C#) will allow a user to review these temporarily stored items by viewing their contents in a MediaElement. I was hoping to set the MediaElement's Source Property to a video or image's URI stored in IsolatedStorage but I cannot figure out how to dynamically create a URI since it doesn't appear to be naively supported by IsolatedStorage. Any help would be greatly appreciated - thank you in advance!
Update - 1/21/09 After battling the issue for a day, I concluded that the Isolated Storage approach is not practical for storing large video files that need to be referenced by a Uri.
Upvotes: 3
Views: 1778
Reputation: 1835
Isolated Storage is intended to provide a way for you to store data on the client WITHOUT knowing the specific location of the files you have stored. The reason for the lack of a URI is to keep the files you have stored in a "security sandbox". You may be able to figure out a way to get the actual URI but if there is a way it is likely that Microsoft will release a security patch that breaks your code.
I would find a different way to accomplish your task. It is generally a bad idea to try "fighting" the security settings in the platform since future platform changes could break your application.
Upvotes: 1