问题标签 [sevenzipsharp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 由 SevenZipSharp 提取的 C#
我尝试从存档中提取文件,但出现异常“System.ArgumentOutOfRangeException”。
我认为这可能是字符串中的问题,其中包含文件名。
我尝试手动输入文件的路径,它不会改变任何东西。
哪里可能有问题?
堆栈跟踪
在 System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
在 System.String.Substring(Int32 startIndex)
在 SevenZip.Formats.FormatByFileName(String fileName, Boolean reportErrors)
在 SevenZip.FileChecker.CheckSignature(String fileName, Int32&
在 SevenZip.SevenZipExtractor.Init(String archiveFullName)
在 SevenZip.SevenZipExtractor..ctor(String archiveFullName) 中的偏移量,布尔值& isExecutable )
vb.net - 如何使用 Sevenzipsharp 异步解压缩档案列表并正确处理它们?
如何使用 SevenZipSharp 异步解压缩档案列表并正确处理它们?
这是我正在查看的内容:
我想我必须添加某种异步方法,但我不知道它应该是什么样子。有任何想法吗?
c# - 如何使用 SevenZip - 7Zip 压缩/解压缩字符串
文档太差了,所以我很难做到这一点
我添加了 dll 文件和正确的引用
最后它压缩了字符串,但是当我解压缩时出错
你能告诉我错误在哪里吗?
下面解压
我在这里收到错误消息
c# .net 4.5 WPF ,
包\SevenZipSharp.0.64\lib\SevenZipSharp.dll
c# - 从服务器 ASP.NET C# 上的文件夹创建自解压文件
我需要它是自解压文件,在用户将文件下载到他的计算机并运行 EXE 文件后,软件的安装会自动开始。就像使用 WINZIP 和 WINRAR 一样。
我尝试使用:
http://sevenzipsharp.codeplex.com/
并且无法成功。
我知道我可以用“dotnetzip”来做到这一点,但据我所知,它需要 .net 2.0 用于自解压 EXE 文件,我不想依赖 .NET 框架。
c# - C# 7zip 压缩但不打开
我使用 SevenZipSharp 压缩我的文件夹我在 c# 中有一些代码
它正在工作,但创建的存档有一些锁定
请帮我解决它!谢谢!
c# - SevenZipSharp 停止提取
我有个问题。我正在使用 SevenZipSharp 提取 7z 目录并且一切正常,但是在提取过程中我希望有可能停止提取但我做不到。
提取是在 BusinessLogicProject 中进行的,在单击查看项目中的按钮后,我不会停止它。
SevenZipExtractor 有 5 个事件:FileExtractionStarted、FileExtractionStarted、Extracting、ExtractionFinished 和 ExtractionStarted。我正在使用其中两个来更改进度条并在提取后删除 zip 文件:
在此先感谢您的帮助。
memorystream - SevenZipSharp CompressStreamDictionary 错误
小于约 16 MB 的内存流运行良好。但是在压缩大小超过 16MB 的内存流时出现错误(HResult = -2146233088)。我怎样才能让它工作?
我使用 SevenZipSharp.dll 版本 0.64.3890.29348
由于 SevenZipSharp 中的错误,执行失败。请向http://sevenzipsharp.codeplex.com/WorkItem/List.aspx报告,发布版本号并附上存档。
错误堆栈跟踪:
bei SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e) bei SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler) bei SevenZip.SevenZipCompressor.CompressStreamDictionary(Dictionary`2 streamDictionary, Stream archiveStream, String password) bei frmConfigSystem.bwExport_DoWork(对象发送者,DoWorkEventArgs e)
c# - 如何基本上用sevenzipsharp提取文件
我将使用sevenzipsharp 从iso 文件中提取文件到usb。为此,我从 vs nuget 包管理器下载了sevenzipsharp,并编写了代码(实际上我不能:))这段代码。我没有任何错误,但它不起作用。我在哪里犯错?请写详细信息。
先感谢您
c# - 一个 SearchPattern 在 SevenZipSharp 中包含多个搜索模式
我SevenZipSharp
用来压缩我的文件和目录。
我使用以下代码,它运行良好:
现在,我想通过更复杂的 SearchPattern 过滤目录文件,如下所示:
在这种情况下,我得到:
指数数组的边界之外
有没有办法做到这一点SearchPattern
?如果否,我该怎么做?
c# - 直接从远程源解压缩 zip 文件
我想在 Azure FileStorage 上以 zip 格式存储一些数据。
SevenZipSharp(尤其是 SevenZipExtractor 类)可以使用 URLhttps://myaccount.file.core.windows.net/shared1/folder1/data00054.zip
代替本地文件吗?
我想从远程位置检索文件,在内存中解压缩,处理数据,然后清理内存。