Groups | Blog | Home
all groups > vj# > july 2005 >

vj# : ZipEntry class - date setting


Sreelu
7/27/2005 7:53:01 PM
Hi

I'm using ZipEntry class in one of my asp.net applications(c# is code
behind). I'm able to successfully zip a file, but the date of the zipped file
is shown as 1/1/1980. I tried to ZipEntry.setTime(long), but it is also of
no use. How to get orignal file date/tiime for the zipped file. Please let me
know.

Sreelu
7/31/2005 8:01:03 AM
Oops!

Thanks Lars.

[quoted text, click to view]
Lars-Inge Tønnessen [VJ# MVP]
7/31/2005 12:09:18 PM

Hi,

[quoted text, click to view]


This is an old bug in the lib. I think it's fixed in the .NET 2.0 (Visual
Studio 2005) that will soon be released.

Here are a few alternatives:

http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
http://www.xceedsoft.com/products/ZipNet/


Regards,
Lars-Inge Tønnessen

AddThis Social Bookmark Button