I have a silverlight 5 project called Kinemat.AuthoringTool. Inside this project i have a folder called Backgrounds and there i have some images (their Build Action is Content
). I want to access an image's stream and then upload that image on a server. After some research on msdn i use the following code:
StreamResourceInfo streamResourceInfo =
Application.GetResourceStream(new Uri("PathToPutHere"));
Stream imageStream = streamResourceInfo.Stream;
of course using the path "/Backgrounds/imageName" does not work. What is the correct path then?