Skip to main content

[truezip-users] Re: Corrupted Zip Archive

  • From: Bertrand Venzal <bvenzal@...>
  • To: "users@..." <users@...>
  • Subject: [truezip-users] Re: Corrupted Zip Archive
  • Date: Wed, 2 Oct 2013 01:03:56 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=eARqmVQXHQ0zwKS3G1mB3puld3t31tJc//qu0AYdVhPzNr106pvmGHkAvp2l3GpHvKj3oma6u95jsoAbW9d/KkQ38Pe6MX3jydxkDPTg0QuKGR+U1FV7fGlU8ooAgH0FggowjUYnnye0ZDQtDFQQz+gej11/FlTrLNMuOVGMN94=;

Hi Christian,
 
Thanks for your reply. I tried Info-Zip with no luck :
End-of-central-directory signature not found.
 
I will try ZipInputStream.
 
Regards
Bertrand
 

________________________________
 From: Christian Schlichtherle <christian@...>
To: users@... 
Sent: Tuesday, October 1, 2013 5:22 PM
Subject: [truezip-users] Re: Corrupted Zip Archive
  

Hi Bertrand,

as documented, TFile.contains(TFile) just looks at the path names - see 
https://truezip.java.net/apidocs/de/schlichtherle/truezip/file/TFile.html#contains(java.io.File)
 .

TrueZIP/TrueVFS does some autocorrection on corrupted ZIP files. For example, 
if a Central Directory is missing (maybe because the JVM has been killed 
before writing it), then TrueZIP/TrueVFS automatically recovers the lost 
entries from their local file header data. However, apart from that, both 
projects do not provide a general solution to repair corrupted ZIP files.

You may have better luck with other tools. Info-ZIP can recover some data 
from corrupted ZIP files and even plain old java.util.zip.ZipInputStream may 
be capable to help you.

Regards,
Christian Schlichtherle


Am 01.10.2013 um 17:06 schrieb <bvenzal@...>:

> Hello,
> 
> I try to open an archive file which is corrupted. I wondered if it is
> possible to recover contents of the archive as I know content names ?
> TrueZip seems to have access to some parts of it as :
> 
> TFile archive = new TFile(archiveFileName);
> TFile entry = new TFile(entryFileName);
> archive.contains(entry) => return true
> BUT 
> entry.exist() => return false;
> 
> Any help will be appreciate and thanks a lot for your library.
> 
> Thanks,
> 
> Bertrand

[truezip-users] Corrupted Zip Archive

bvenzal 10/01/2013

[truezip-users] Re: Corrupted Zip Archive

Christian Schlichtherle 10/01/2013

[truezip-users] Re: Corrupted Zip Archive

Bertrand Venzal 10/02/2013
 
 
Close
loading
Please Confirm
Close