Hi i'm getting this error when I extract a file above 4GB. Had a read through a few relevant threads but they haven't helped much the full error and relevant code is listed below.
Exception: ICSharpCode.SharpZipLib.Zip.ZipException: Zip64 Extended information found but version is not valid
at ICSharpCode.SharpZipLib.Zip.ZipEntry.ProcessExtraData(Boolean localHeader)
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry()
at RestoreDB.Module1.Restore() in C:\Work\RestoreDB\RestoreDB\Module1.vb:line 104
TryDim strmZipInputStream As ZipInputStream = New ZipInputStream(File.OpenRead("filename"))Dim objEntry As ZipEntry
objEntry = strmZipInputStream.GetNextEntry()
If objEntry.LocalHeaderRequiresZip64 ThenSendErrorMsg(objEntry.Version.ToString, "IS Restore program error")
End If
While IsNothing(objEntry) = FalseDim oWrite As System.IO.Stream
oWrite = File.Create(ConfigurationManager.AppSettings(
"BakFileLocation") & "File_" & Now.Year & strMonth & strDay & "/" & objEntry.Name.ToString)
DoDim nSize As Integer = 2048
Dim abyData(2048) As Byte
nSize = strmZipInputStream.Read(abyData, 0, abyData.Length)
If nSize > 0 Then
oWrite.Write(abyData, 0, nSize)
End If
If nSize = 0 Then
Exit Do
End If
Loop
objEntry = strmZipInputStream.GetNextEntry() 'where error is
oWrite.Close()
End While
strmZipInputStream.Close()
Catch e As Exception
SendErrorMsg(
"Exception: " & e.ToString, "IS Restore program error")
Return False
End Try