Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: ArchiveFactory.Open() don't work on Windows Univerval App

$
0
0
So, here is a very simple code :
IRandomAccessStreamWithContentType stream = await file.OpenReadAsync();
IArchive archive = ArchiveFactory.Open(stream.AsStreamForRead());
This should work fine, but archive is not properly loaded. Instead, if I use the following snippet, all works fine :
IRandomAccessStreamWithContentType stream = await file.OpenReadAsync();
IArchive archive = SharpCompress.Archive.Zip.ZipArchive.Open(stream.AsStreamForRead());
To test this, I used a very basic ZIP file create with 7Zip.

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>