mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Unable to unZIP file #387
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MikhaelBolgov on GitHub (Feb 17, 2020).
Hello,
It seems, that SharpCompress is unable to correctly unpack files from this ZIP file:
https://download.print-driver.com/ex/mb/SharpCompress/20-00010.zip
7z & WinRAR are able to unpack this ZIP file with ease. So, could you please fix this issue in new SharpCompress build?
My code snippet is below. Please let me know if you need any additional info to debug this issue.
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
Extract(@"c:\out\20-00010.zip", "830483 Taxes.pdf");
}
}
Mikhael
@Erior commented on GitHub (Apr 22, 2020):
I tested this on Windows with your file/code without issue, what kind of problem did you get?
@MikhaelBolgov commented on GitHub (Apr 23, 2020):
If we unpack "830483 Taxes.pdf" file from "20-00010.zip", the output file size have wrong size.
Correct size is: 769676 bytes. But extracted by sharpcompress file size is 8053096 bytes.
If I open extracted file "830483 Taxes.pdf" in Notepad, I can see, that this file contains correct PDF file content + "extra ending" with a lot of digital data.
Please let me know if you need any additional data to reproduce this issue on your side.
Mikhael
@adamhathcock commented on GitHub (Apr 23, 2020):
Did you use the latest version?
Thanks for helping @Erior
@MikhaelBolgov commented on GitHub (Apr 23, 2020):
Yes, the newest version works well, thank you!
It seems, that we are able to build your solution under NET Framework 4.6 only. Do you have any idea how to build newest version of sharpcompress DLL under NET Framework 4.0 to let it work under all Windows versions our customers have?
@adamhathcock commented on GitHub (Apr 23, 2020):
You should only use supported versions of the .NET Framework or use .NET Core. I'm personally not wanting to build for full framework anymore and probably won't want .NET 5 is out.
You're welcome to get the source and build it yourself if you need other types of support.
@MikhaelBolgov commented on GitHub (Apr 23, 2020):
OK, I see. Thank you for your component!