CatCap
CatCap

Reputation: 240

Get stream of local image. Windows phone 8

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

Answers (1)

Manvik
Manvik

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

Related Questions