I am getting this error:
java.util.zip.ZipException: invalid CEN header (bad signature)
and I am not quite sure what is the problem, when I search google for CEN header nothing useful is found.
Any help is appreciated, thanks.
Here is the code and it fails on the last line:
ZipFile resourceZip = null;
if (pir.getSource().endsWith("Resources.zip"))
{
File temp = new File( "C:\\Users\\nbonnet\\Desktop\\new\\Resources1.zip");
byte[] bytesFromClob = ClobHelper.bytesFromClob(pir.getContents(),"latin1");
FileOutputStream out = new FileOutputStream(temp);
out.write(bytesFromClob);
out.flush();
out.close();
resourceZip = new ZipFile(temp); // <-- Code fails here
}