Hello, when i try to write a zipped excel file using:
FileOutputStream out = new FileOutputStream(zipFileName); ZipOutputStream zip = new ZipOutputStream(out); zip.putNextEntry(new ZipEntry(sheetFileName)); HSSFWorkbook wb = coux.writeSheet(); zip.write(workBook.getBytes()); zip.closeEntry(); zip.close(); The archive with the Excel file is written. But later when opening the extracted file Excel crashes. When writing the same file using: FileOutputStream out = new FileOutputStream(fileName); HSSFWorkbook wb = countryXchange.writeSheet(); wb.write(out); out.close(); Everything is find. Could please someone give some hints what coul cause the error. Is there something else to be considered for writing zipped Excel file. When generating zipped text files i didn't had any problems. Thanks for any help. Reto -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
