Decompress ZIP archive in a native Windows Runtime component/application

佐手、 提交于 2019-12-11 16:54:39

问题


This seems to be a simple task, yet my research left me with nothing: How do you extract items from a ZIP archive in a native Windows Runtime component (or application)?

Now if I were to target .NET, there's a ZipArchive and ZipFile class, that make the solution as simple as it should be. But what, if I cannot or do not want to take a dependency on the CLR?

The only compression support I was able to find in the Windows Runtime is the Windows.Storage.Compression Namespace, and there's really little to be had. For decompression, there is a Decompressor class, but apparently, that can only work on a single stream.

So, how do you traverse the structure of a ZIP file and extract individual items in a native Windows Runtime component?

来源:https://stackoverflow.com/questions/56314355/decompress-zip-archive-in-a-native-windows-runtime-component-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!