Bugster (The Bugtraq 2.0 ) uses the java.utl.zip package to compress and store attachments. The following code is used by Bugster to create the zip file : BEGIN CODE ---------- BufferedInputStream istream = new BufferedInputStream(input); OutputStream ostream = null; if ( !Compress.isCompressed(path) ) { ostream = new BufferedOutputStream(new FileOutputStream(path + ".zip", append), 4096); zipWriter = new Zip(ostream, attachFile.getName()); ostream = zipWriter.getOutputStream(); } else ostream = new BufferedOutputStream(new FileOutputStream(path, append), 4096); END CODE ------ Files larger than 10 MB are broken into 10 MB chunks and the first 10 MB is used to create the compressed zip file and the remaining 10 MB chunks are appended using ZipOutputStream. The problem we have is that the final zip file (after all the 10 MB chunks are appended) cannot be opened by Solaris unzip utility. We have now modified the BT2.0 code to not use the append feature of ZipOutputStream. We have a significant # of Zip files in Bugtraq2.0 that have been created using the ZipOutputStream in append mode. Is there any way of recovering data from these zip files ? ###@###.### 2004-11-09 19:53:38 GMT
|