Re: Dynazip - Unable to unzip. Please help!
- From: "spdude" <sandeshmeda@xxxxxxxxx>
- Date: 29 Jun 2006 07:13:39 -0700
Ok, I fixed this. For future reference - the duzn object has the
ErrorCode property that gives you the nature of the error. In my case,
I received the UE_UNKNOWN error because dzncore.dll (that ships with
DynaZip Max) was in an incorrect location. Once I added it to
C:\Windows\system32, it worked like a charm.
Peter wrote:
Regardless that the permissions "seem to be ok" I'd strongly suspect that it
still is a write permission issue.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"spdude" wrote:
Hi,
We are using Dynazip to unzip files on our server. It works perfectly
on a test box but when the same code is deployed to the production, it
chokes. It creates the unzipped file with 0 bytes. It makes me think
that is some kinda environment/system issue but am not sure what it is.
I have checked the permissions on the folder/file and it seems to be
good.
Any help is really appreciated.
The code is as below.
<<snip
CDUnZipNET duzn = new CDUnZipNET();
// Set Dynazip settings
duzn.ZIPFile = OutputDir + ZipFileName;
duzn.Filespec = FileNameInsideOfZip;
//no. of bytes offset to start unzipping
duzn.StartingOffset = 0;
duzn.StartingOffsetH = 0;
duzn.MemoryBlockSize = 1024 * 1024 * 6;
duzn.MemoryBlockSizeH = 0;
fsOUT = new System.IO.FileStream(OutputDir + "FileOUT.xml",
System.IO.FileMode.OpenOrCreate,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None);
if(fsOUT.CanWrite)
{
fsOUT.SetLength(0);
//Uses MemtoMem Event to stream data from ZIP file to memory
duzn.UnZipMemToMemCallback += new
CDUnZipNET.OnUnZipMemToMemCallback(this.UnZipMemToMemCallback_event);
//Perform the UnZIP File To Memory Streaming function
duzn.ActionDZ = CDUnZipNET.DUZACTION.UNZIP_FILETOMEM_STREAM;
}
else
{
//Problem with opening/creating the Output temp file so return
empty dataset
return data;
}
fsOUT.Close();
snip >>
.
- References:
- Dynazip - Unable to unzip. Please help!
- From: spdude
- RE: Dynazip - Unable to unzip. Please help!
- From: Peter Bromberg [C# MVP]
- Dynazip - Unable to unzip. Please help!
- Prev by Date: Re: animation in .net
- Next by Date: DataGridView (hidden info per row)
- Previous by thread: RE: Dynazip - Unable to unzip. Please help!
- Next by thread: Re: show Clock and Vertical label
- Index(es):
Relevant Pages
|