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

New Post: WP8 NotSupportedException during ArchiveFactory.Open

$
0
0
I love this library. So simple to use. I'm using it to decompress images from a cbr file (rar file for comic book images).

It works fine! But I do get a NotSupportedException in debug everytime I run this code:
using (IArchive archive = ArchiveFactory.Open(raStream.AsStream()))
                {
                    var entry = archive.Entries.ElementAt(pageNumber);
                    MemoryStream stream = new MemoryStream();
                    entry.WriteTo(stream);
                    bitmapImage.SetSource(stream);
                }
It shows up during the using statement. Mostly I just wanted to say thanks for writing this. But if there's a good reason I'm getting this exception, I wouldn't mind knowing why... :)

Viewing all articles
Browse latest Browse all 239

Trending Articles



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