Un Zip illisible par l'API standard
Bonjour,
je cherche à dezipper une archive et je suis tombé sur un cas bizarre : un zip ,que m'a fournis le client, apparait comme vide avec l'api java.util.zip (ou même java.io) alors que l'archive contient bien des fichiers d'après winzip et 7z.
Encore mieux, si je le dezip puis rezip sous windows, je peux lister les noms de fichier contenu... mais si je veux lire les fichiers que je viens de lister, je me tape une FileNotFoundException ...
Je sais pas si ce problème vous est déjà arrivé, moi je sèche.
voilà le rapport du zip bizarre, si ça vous parle :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| Testing ...
Current Location part 1 offset 330424378
Archive: C:\FACTURES\Mars 2009.zip 330424400 bytes 2009-07-29 09:55:34
End central directory record PK0506 (4+18)
==========================================
current location of end-of-central-dir record: 330424378 (0x13b1e03a) bytes
expected location of end-of-central-dir record: 330424378 (0x13b1e03a) bytes
based on the size of the central directory of
858 and its relative offset of 330423520 bytes
part number of this part (0000): 1
part number of start of central dir (0000): 1
number of entries in central dir in this part: 12
total number of entries in central dir: 12
size of central dir: 858 (0x0000035a) bytes
relative offset of central dir: 330423520 (0x13b1dce0) bytes
zipfile comment length: 0
Current Location part 1 offset 330423520
Central directory entry PK0102 (4+42): #1
======================================
part number in which file begins (0000): 1
relative offset of local header: 4 (0x00000004) bytes
version made by operating system (00): MS-DOS, OS/2, NT FAT
version made by zip software (20): 2.0
operat. system version needed to extract (00): MS-DOS, OS/2, NT FAT
unzip software version needed to extract (10): 1.0
general purpose bit flag (0x0000) (bit 15..0): 0000.0000 0000.0000
file security status (bit 0): not encrypted
extended local header (bit 3): no
compression method (00): none (stored)
file last modified on (0x00003a86 0x00006651): 2009-04-06 12:50:34
32-bit CRC value: 0x346c8809
compressed size: 101394416 bytes
uncompressed size: 101394416 bytes
length of filename: 22 characters
length of extra field: 0 bytes
length of file comment: 0 characters
internal file attributes: 0x0000
apparent file type: binary
external file attributes: 0x00000001
non-MSDOS external file attributes: 0x000000
MS-DOS file attributes (0x01): read-only
Current Location part 1 offset 330423566
filename:JD_DA_2009_03_mars.zip
Current Location part 1 offset 330423588 |
Avez-vous une idée ?
Merci par avance.
Matthieu