Quantcast
Channel: DotNetZip Library
Viewing all 664 articles
Browse latest View live

New Post: Compatibility with .Net Core

$
0
0
I am searching for a library that supports compression with password (AES) for the .Net Core. Are there any plans to support this framework?

Created Unassigned: Bad Signature exception thrown for valid zip file. [17669]

$
0
0
The following code snippet throws "BadReadException: Bad signature (0x03323108) at position 0x0020969F":
using (var zip = new Ionic.Zip.ZipInputStream(fileName))
{
var e = zip.GetNextEntry();
while (e != null)
{
e = zip.GetNextEntry(); // This line is failing
}
}

But the following works:
using (var zip = Ionic.Zip.ZipFile.Read(fileName))
{
foreach (var e in zip)
{
Console.WriteLine(e.FileName);
}
}

Created Unassigned: Unzip files "The final hash has not been computed." [17672]

$
0
0
Hi, i zipped a folder of 1.5 GB in multiple zip files of 100 MB using aes256 encryption. When i tried to unzip, after 70 - 75% of files were unzipped the error Ionic.Zip.BadStateException was thrown with the message "The final hash has not been computed.". Please tell me why it is happening and how can i fix this.
I found the same issue here, but without a solution.
http://dotnetzip.codeplex.com/workitem/16105
Please help, thanks.

New Post: decompress byte arrays > 32 Kb

$
0
0
Hi all, I have a problem when I use
Ionic.Zlib.ZlibStream.UncompressBuffer(Input);
with an input array, which would produce an output array above 32 Kb.
The result array always has a size of 32768 byte.
Any hint would be very appreciated. thx
robin

Created Unassigned: How can i check whether a Zip file has Password protected or not? [17677]

$
0
0
I need to check whether the zip uploaded in Web application has password protected or not? If password protected, should not allow to upload the zip file?

New Post: Ionic.zlib.gzipstream not unzipping entire file

$
0
0
Hi experts,
  I am unzipping the file. The file is gzip. I am using GZipStream with CompressionMode.Decompress
It is working means extracting the file but only top 10 lines only. If I extract manually with 7gip, the file is extracted full with the size 58MB. Using the code, it is extracting only 10KB or like that.

It's not giving any error but just extracting only small portion of the file.

How can I debug? What could be the issue? It is working well previously. I don't know what is the difference between old and new files. It's not generating any errors.

If I manually unzip and zip again, the code working well.

My code as below

Dim DecompressedFile As String = NewZipFile.Substring(0, NewZipFile.Length - 3)
        Dim working(2048) As Byte
        Dim n As Integer = 1
        Using input As Stream = File.OpenRead(NewZipFile)
            Using decompressor As Stream = New Ionic.Zlib.GZipStream(input, CompressionMode.Decompress, True)

                Using output As Stream = File.Create(DecompressedFile)
                    Do
                        n = decompressor.Read(working, 0, working.Length)

                        If n > 0 Then
                            output.Write(working, 0, n)
                        End If
                    Loop While (n > 0)
                End Using
            End Using
        End Using

Created Unassigned: Overflow Exception [17687]

$
0
0
I am getting overflow exception when I tried to split into 1 MB size of 200 MB large file.
Is there any limitation how many parts I can split? Is there any limitation of how big of a file I can split?

An unhandled exception of type 'System.OverflowException' occurred in Ionic.Zip.dll

Additional information: The number of zip segments would exceed 99.

Regards,
Seshu

New Post: how to zip specific subfolders from a folder

$
0
0
Hi,

Can I use DotNetZip to Zip all sub-folders starting with specific string like.
Zip "all folders" under C:\TEST which begins with User (will include user1, user2, user3 sub-folders with all their contents files/Folders)

How can I do this?
Any help would be highly appreciated

New Comment on "Details"

$
0
0
Why does the zipfiles.info give "disk with CD" equal to the number of files? Also the Disk Number is incorrect, shows 0 for the first file in the set, but 1 for the rest? Idea's?

Reviewed: v1.9.1.8 DotNetZip - Latest Stable (Jul 19, 2016)

$
0
0
Rated 4 Stars (out of 5) - I think this release is very well done, with the exception of the File Info. I need the File Info to be precise for spanned zips and the data doesn't seem to be correct for this. The 'disk on cd' holds the number of split files including the zip itself and the disk number is incorrect too. Please fix this.

New Post: ZipFile.Info not correct for segmented (split) files

$
0
0
The File Info isn't correct for spanned zips. The 'disk on cd' holds the number of split files including the zip itself and the disk number for each file in the zip is incorrect too. Or am I not looking at this correctly, please advise.

Reviewed: v1.9.1.8 DotNetZip - Latest Stable (Jul 25, 2016)

$
0
0
Rated 4 Stars (out of 5) - pretty nice library. Helped me in knowing if a zip file is password protected or not, without extracting it.

New Post: How can I list files without Extract in double archive file

$
0
0
Hi,

I have a zip file. The first layer content is another zip. Second layer is really files.

example:
abc.zip, this zip content is AAA.zip
AAA zip, this contest is aaa.doc, aaa.xls and aaa.txt.

How can I list all file (aaa.doc, aaa.xls and aaa.txt.) without extract in abc.zip ?

Thanks.

New Post: Adding file without rewriting whole archive

$
0
0
Hello,

is it possible to somehow add/delete file in zip, without actually copying all the old data and creating new zip?

New Post: When to use stream based API?

$
0
0
I'm new to the DotNetZip. I have list of hundreds of files to zip. The folder of these files are different. One way I can do is to call class ZipFile's method AddFile hundreds times. Another way is to open each file to FileStream, then call AddEntry(filename, StreamToRead). I'm wondering which way is more efficient in time?

My second question is when to use ZlibStream Class, what's it advantage?

Thanks!

New Post: Black (DOS like) box appears

$
0
0
Hi,

I am using the Ionic.zip.dll lib (v..9.1.8) for the first time
I have successfully written a simple .net console app to get a list of files and save them into a specified zip file (new each time)

It is so simple to use yet powerful, so Well DONE!

However, when I re-run the same code (inside vs2012 Pro) but on a larger number of files (>1000) some of which are a large size (e.g. several at 500mb) then the .Save(<filename>) method simply hangs but ALSO a DOS BOX is shown and processing seems to stop

The destination folder contains a temp file "DotNetZip-ac1qi3yg.tmp"
if I copy and rename this to a ".zip" then I can open it but it fails to test and complains of errors in the file
(I guess its not complete)

Because of the 1000 files and some of which are 500mb, i left this to perform its magic for over an hour and still the same -no joy.

Is this normal, is there a limit on files/sizes or is there something else wrong?

In all cases I am using the .AddFiles( <list of files()>, <fldername>) as the method to add files
works when only smaller set of files

Any advise/pointers would be apreciated

thanks
Urfan

Created Unassigned: .Save() hang [17698]

$
0
0
Hi

I am using the Ionic.zip.dll lib (v..9.1.8) for the first time
I have successfully written a simple .net console app to get a list of files and save them into a specified zip file (new each time)

It is so simple to use yet powerful, so Well DONE!

However, when I re-run the same code (inside vs2012 Pro) but on a larger number of files (>1000) some of which are a large size (e.g. several at 500mb) then the .Save(<filename>) method simply hangs and processing seems to freeze and VStudio is still running.
I can stop/pause and processing returns to VStudio

(It works with other tests and >1000 files but smaller in size than this, more typical, folder contents)

Whilst it is "processing" the destination folder contains a temp file "DotNetZip-ac1qi3yg.tmp"
if I copy and rename this to a ".zip" then I can open it but it fails to test and complains of errors in the file
(I guess its not complete)

Because of the 1000 files and some of which are 500mb, i left this to perform its magic for over an hour and still the same -no joy.

Is this normal, is there a limit on files/sizes or is there something else wrong?

In all cases I am using the .AddFiles( <list of files()>, <foldername>) as the method to add files
works when only smaller set of files

Any advise/pointers would be appreciated

thanks
Urfan

Commented Issue: AddEntry() deadlock depending on size [15806]

$
0
0
ZipFile.Save() hangs when 2 files with a size of 65536 * (9 or grater) are added before.
To work around this you have disable compression.
Sample:
static void Main(string[] args) {

var zipFile = new Ionic.Zip.ZipFile();
int contentSize = 65536 * 9; // * 9, 10, 11 ...

var content1 = new byte[contentSize];
var content2 = new byte[contentSize];

zipFile.AddEntry("content1", content1);
zipFile.AddEntry("content2", content2);

zipFile.Save(System.IO.Path.GetTempFileName()); // it hangs here

System.IO.File.Delete(zipFile.Name);
}
Comments: ** Comment from web user: UrfanD **

Hi
Glad I looked at this, I have the same issue. Lots of files (which is fine, unless) some are large
the .Save(..) hangs

I re-did the test and turned compression OFF then re-tested as OK

Iam working on version 1.9.1.8 of Ionic.Zip.DLL

The issue seems to date back awhile to 2012 and its now August 2016
No progress?

New Post: DotNetZip and long paths

New Post: how to zip specific subfolders from a folder

$
0
0
I also have the same problem. Kindly help us.
Viewing all 664 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>