How to read file from ZIP archive to memory without extracting it to file first, by using C# .NET 4.5?

Viewed 12209

.NET Framework 4.5 added support for ZIP files via classes in System.IO.Compression.

Let's say I have .ZIP archive that has sample.xml file in the root. I want to read this file directly from archive to memory stream and then deserialize it to a custom .NET object. What is the best way to do this?

1 Answers
Related