SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Zip64 Extended information found but version is not valid

Last post 08-27-2008 10:00 PM by JohnReilly. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-27-2008 12:31 PM

    • Tom_R
    • Not Ranked
    • Joined on 11-16-2007
    • Posts 2

    Zip64 Extended information found but version is not valid

    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

    Try

    Dim strmZipInputStream As ZipInputStream = New ZipInputStream(File.OpenRead("filename"))Dim objEntry As ZipEntry

    objEntry = strmZipInputStream.GetNextEntry()

    If objEntry.LocalHeaderRequiresZip64 Then

    SendErrorMsg(objEntry.Version.ToString, "IS Restore program error")

    End If

    While IsNothing(objEntry) = False

    Dim oWrite As System.IO.Stream

    oWrite = File.Create(ConfigurationManager.AppSettings("BakFileLocation") & "File_" & Now.Year & strMonth & strDay & "/" & objEntry.Name.ToString)

    Do

    Dim 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

  • 08-27-2008 12:33 PM In reply to

    • Tom_R
    • Not Ranked
    • Joined on 11-16-2007
    • Posts 2

    Re: Zip64 Extended information found but version is not valid

    Ignore

    If objEntry.LocalHeaderRequiresZip64 Then

    SendErrorMsg(objEntry.Version.ToString, "IS Restore program error")

    End If

    was a test.

  • 08-27-2008 10:00 PM In reply to

    Re: Zip64 Extended information found but version is not valid

    Hi,

    The version contained in the entry must be 4.5 or higher to support extended information.  This would indicate that the file is invalid.

    The exception could show the version to be slightly more helpful.

    hth, -jr-

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.