This project is read-only.

AddEntry(string,WriteDelegate) results in invalid zip file if no bytes are written

Oct 7, 2009 at 12:35 PM

I started using this new function which is very convenient.

While it works where I actually have writen the code to write bytes, when I am using a temporary { writer.Close(); } delegate (i.e. no bytes written), the generated Zip file results in "premature end of file" exception when I try to unZip it with WinZip (probably DotnetZip would have the same problem).

It is not very usefull to create 0 bytes files, but the need could occur.


Oct 7, 2009 at 5:23 PM

Yes, I still need to smooth out the edge cases.


Oct 7, 2009 at 5:24 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Oct 7, 2009 at 10:34 PM

I fixed that up, GM.  v1.9.0.17