Skip to content Skip to sidebar Skip to footer

Zipoutputstream, Zipentry Return Null When I Try To Dezip

I have a function to compress a file and another to decompress it. When I try to decompress an archive I've generated with my own function, there is a null pointer exception becaus

Solution 1:

You are writing to your zip file foutput before you start writing to it through ZipOutputStream zos

I think you should remove line :

output.writeTo(foutput);

Post a Comment for "Zipoutputstream, Zipentry Return Null When I Try To Dezip"