473,395 Members | 1,977 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,395 software developers and data experts.

SharpZipLib problem

I keep getting this error when decompressing any zip files..

ICSharpCode.SharpZipLib.ZipException: Wrong Local header signature:
0xB023867F

at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNext Entry()

at BeneFTPHostService.BeneFTPHostService.ProcessQueue () in
C:\reschinidev\benefits
application\BeneFTPHostService\BeneFTPHostService. vb:line 187

what would cause this? I'm using pretty much the same code as the examples
they provide but it works fine with their code and gives me that error with
mine... here is the code I'm using below.

inputStrm.Password = "Benefits04"

Dim nextEntry As ZipEntry = inputStrm.GetNextEntry()

While Not nextEntry Is Nothing

Try

Dim tmpStrm As New FileStream(Path.Combine(s_foldertostoredate,
nextEntry.Name), FileMode.CreateNew)

Dim tmpBuffer(2048) As Byte

Dim tmpLength As Integer = -1

While True

tmpLength = inputStrm.Read(tmpBuffer, 0, tmpBuffer.Length)

If tmpLength > 0 Then

tmpStrm.Write(tmpBuffer, 0, tmpLength)

Else

Exit While

End If

End While

tmpStrm.Flush()

tmpStrm.Close()

Catch ex As Exception

Debug.WriteLine(ex.ToString)

b_ErrorFlag = True

Finally

nextEntry = inputStrm.GetNextEntry()

End Try

End While

inputStrm.Close()


Nov 21 '05 #1
1 3477
"Brian Henry" <sd**@sdf.net> schrieb:
ICSharpCode.SharpZipLib.ZipException: Wrong Local header signature:
0xB023867F

at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNext Entry()

at BeneFTPHostService.BeneFTPHostService.ProcessQueue () in
C:\reschinidev\benefits
application\BeneFTPHostService\BeneFTPHostService. vb:line 187

what would cause this? I'm using pretty much the same code as the examples
they provide but it works fine with their code and gives me that error
with mine... here is the code I'm using below.


Notice that there is a sepatate forum for questions about the SharpZipLib
available:

<URL:http://www.icsharpcode.net/OpenSource/SD/forum/forum.asp?FORUM_ID=16&CAT_ID=8&Forum_Title=SharpZi pLib>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

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

Similar topics

2
by: Christer | last post by:
Hi all, I've been trying to use the SharpZipLib as it sounds promising and a lot of people refer to it in discussions on compression. However, I am getting some bad output, when I try to unzip a...
1
by: BeanDog | last post by:
I know this is a horse that's been beated good and dead, but I *still* can't find a good solution to this. I suppose I should post this on SharpZipLib's forums, but I signed up and they never sent...
1
by: Calvin Slater | last post by:
I am always getting the following error when debuging ASP.NET application: Access is denied: 'ICSharpCode.SharpZipLib'. At this point I have to reboot IIS to get the web site going again. It...
1
by: Flix | last post by:
The following piece of code should turn the folder IN and its subfolders into a single tar file located in the folder OUT: using ICSharpCode.SharpZipLib; using ICSharpCode.SharpZipLib.Tar; ...
1
by: Yogi_Bear_79 | last post by:
I recently some embedded GZIP files into my project. I added the sharpziplib.dllas a referance. But when I distribute the .exe it looks for the .dll. Did I do something wrong, or miss step? I...
4
by: Sam | last post by:
Hi all, Does someone knows if I can use this librairy (ICSharpCode.SharpZipLib.Zip) for free ? It is used to zip files (as you can probably guess). Thank you very much. Samuel
11
by: mwieder | last post by:
I am using the .NET socket class to program a web client. When I come upon gzip encoded conent, I am having trouble getting the decoded text. I have found the ICSharpCode.SharpZipLib to help, but...
3
by: CodeTalker | last post by:
I am new to VB.NET and SharpZipLib for that matter. I need the ability to zip a single file. I have found many examples of unzipping a zip file but not one to actually zip one. If anyone has an...
5
by: =?Utf-8?B?anVsaW8=?= | last post by:
Hi, I write a program to unzip a Tar file generated on a Unix environment file using SharpZipLib, but returns a error "Header checksum is invalid" when execute the program. This error appears...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.