I\'m stuck with this junit test:
public void test() throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
ZipOutputStream zipOu
Same problem here!
ZipInputStream can't read the output of ZipOutputStream;
new ZipFile(file) fails with an error
no possible explanation!
Archive viewer program opens the zip file just fine!
SOLUTION: Uh... it wasn't a zip file after all... it was a tar called 'folder.zip'. Archive viewer was smart enough...
To those with this problem: Double check!!!