473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Dynazip - Unable to unzip. Please help!

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.UnZipMemTo MemCallback_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 >>

Jun 28 '06 #1
4 7398
Have you tried contacting the vendor about this issue?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"spdude" <sa*********@gmail.com> wrote in message
news:11*********************@d56g2000cwd.googlegro ups.com...
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.UnZipMemTo MemCallback_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 >>

Jun 28 '06 #2
Hi,

Are you running this as what? web app, win service?

r u getting any exception?

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"spdude" <sa*********@gmail.com> wrote in message
news:11*********************@d56g2000cwd.googlegro ups.com...
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.UnZipMemTo MemCallback_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 >>

Jun 28 '06 #3
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.UnZipMemTo MemCallback_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 >>

Jun 28 '06 #4
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.UnZipMemTo MemCallback_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 >>


Jun 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris | last post by:
Hi Where can I find info on unzipping file with VB.NET. I need to unzip a winzip file with my application Thanks
10
by: Don Wash | last post by:
Hi! I'm pretty frustrated learning ASP.NET. I'm learning ASP.NET by downloading samples from various ASP.NET websites and none of the samples worked so far. The SAME error was shown whenever I...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
1
by: ACaunter | last post by:
can someone please help me try to unzip a folder automatically within an asp.net program... thanks -- AdamPC@hotmail.com
4
by: ACaunter | last post by:
Can some please help me.. i've asked this question before and i'll get people writing back with links to http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx, or the easyzipunzip...
3
by: SDRoy | last post by:
Hello Can someone tell me how I can unzip a .zip file in C#. The zip file is already there and I just need to unzip..not zip and unzip. -- Thanks, SDRoy
0
by: Rocky Zhou | last post by:
python unzip At first, I tried to use 'os.popen3("unzip ...") like this: fin, fout, ferr = os.popen3("unzip -o -d %s %s" % (dest, zipfile)) strerr = ferr.read() # This makes the program hanging...
3
by: sdoty044 | last post by:
I am a true n00b... and I just using Python to complete some very small uneventful task, but need help with one last thing. Basically, this I what I am trying to do. make a temp directory...
3
by: jld730 | last post by:
Hi All, I am looking for help on this simple script to unzip/extract the contents of a zip file. This is what I have so far: import zipfile, os, sys zip1 = ("C:\\Temp\\test11.zip") z =...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.