Reputation: 240
I have image ( /Assets/Cat.png ). I need to get stream of this image. I have tried some ways, but all of them were unsuccessfully. What should i do?
Upvotes: 1
Views: 1438
Reputation: 977
In order to get the stream of the image use this
Stream myStream = App.GetResourceStream(new Uri("Assets/Cat.png", UrKind.RelativeOrAbsolute)).Stream;
Upvotes: 2