How can I create a Windows.Storage.StorageFile from a picture in Camera Roll for windows phone 8.1? I have tried the follwing:-
try{
Windows.Storage.StorageFolder folder = Windows.Storage.KnownFolders.CameraRoll;
Windows.Storage.StorageFile file = await folder.GetFileAsync(filename);
}
catch(Exception exc)
{
MessageBox.Show(exc.Message);
}
Which is producing an Access Violation Exception. Can someone plz tell me how to do it in windows phone 8.1?