简体   繁体   English

在C#中将文件添加到zip中

[英]Adding a file to a zip in C#

I'm trying to add a file to a zip without creating a new zip . 我试图在不创建新zip的情况下将文件添加到zip中

I already tried using multiple libraries but none of them could do this without recreating a completely new zip file. 我已经尝试使用多个库,但是如果不重新创建一个全新的zip文件,它们中的任何一个都无法做到。 The library i'm using is DotNetZip 我正在使用的库是DotNetZip

Why I want to this is because i'm working with really big zip files and I just want to modify a existing file in the zip. 我之所以要这样做,是因为我正在处理非常大的zip文件,而我只想修改zip中的现有文件。

Well, ZIP components of our SecureBlackbox don't create new ZIP when you add or delete a file from existing ZIP. 好吧,当您从现有ZIP中添加或删除文件时,我们的SecureBlackbox的 ZIP组件不会创建新的ZIP。 Ie the stream is modified in-place. 即,流被就地修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM