The situation is that a ZIP file has been POSTed to a Tomcat server and since it has no parameter name associated with it, we're going right to the request's stream.
ServletInputStream sis = request.getInputStream()
ZipInputStream zis = new ZipInputStream(sis)
ZipEntry zEntry = zis.getNextEntry()
while (zEntry != null) {
// do something with zEntry
zEntry = zis.getNextEntry()
}
Compellingly simple, but it doesn't work. It never enters the while loop because the first zEntry is null. (The ZIP file is valid, btw)
Any ideas? Thanks
EDIT: Type is multipart/form-data ("multipart/form-data; boundary=---------------------8ce556d90e9deb6")