1
Vote

Problem decompressing UNIX .Z archive

description

Hi,
 
I'm trying to decompress several files created with the UNIX compress command and with a .Z extension. I get the following error message:
 
Error decompressing NCL_LONDON_FARE_FEEDS_GBP_Itinerary.txt.Z: The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.
 
This is part of an ASP.NET project written in VB.NET. The code I am using to attempt this is as follows:
 
Public Function DecompressFile(ByVal sInputFileName As String, ByVal sPath As String) As Boolean
Try
' Get a filestream for the source
Dim fIn As FileStream = New FileInfo(sPath & "\" & sInputFileName).OpenRead()           
' Set the dll path
Dim sDLLPath As String = "C:\Inetpub\vhosts\whatever.co.uk\Bin\7z.dll"      
SevenZip.SevenZipExtractor.SetLibraryPath(sDLLPath)
' Declare the extractor
Dim sze As New SevenZip.SevenZipExtractor(fIn)
' Do the extraction
sze.ExtractArchive(sPath)
sze.Dispose()
Return True
Catch ex As Exception
Return False
End Try
End Function
 
I've tried the same code with files in another format (.7z file compressed using 7-zip file manager), and that works without problems. I've attached the smallest of the archive files that gives this problem. Incidentally I've tried decompressing this file using 7-zip file manager and it works fine, so I think the file is OK.
 
SevenZipSharp version is 0.64.3890.29348
7z.dll version is 9.20.0.0
 
Any help you can give would be appreciated.
 
Cheers,
 
Crac

file attachments

comments