I ran this code using the following additional:
FileOpenPicker MyFOP = new FileOpenPicker();
MyFOP.FileTypeFilter.Add(".zip");
StorageFile MyZipFile = await MyFOP.PickSingleFileAsync();
using (var zipStream = await MyZipFile.OpenStreamForReadAsync())
{
// Your remaining code here
It worked fine for me in my Windows 8.1 project. If you have a project available for review, please post it to OneDrive and paste a link to it here.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.