The file inside the zip file is to be read. The inputstream is taken from zip entry and passed to POIFSfilesystem. ZipEntry zipentry = zip.getEntry(filename); InputStream inputstream= zip.getInputStream(zipentry) public void getFile(InputStream teststream) throws TranslatorException { POIFSFileSystem fs = new POIFSFileSystem(teststream); } It is giving the error message that "Unable to read entire block;363 bytes read; expected 512 bytes please fix the above bug.
I am not sure we do/should support this usage?? Are you sure this is a POI issue? As in, are you sure zip.getInputStream() returns a binary file as is, byte perfect?
I'm pretty sure this is the "slow inputstream" bug, which was fixed just after 2.0-pre3 was released.