Chris Fink wrote:
> [...]
> So what i need help with is
> 1. figuring out why the last item is not added to the list
I don't know the answer to this. You might want to contact the author
of the class you're using. However, the fact that you could potentially
write additional junk to the ZipOutputStream at the end might corrupt
that last entry, causing it to not be seen later. I wouldn't think a
zero-length file would cause this problem, but I suppose you never know.
Depends on how well the ZipOutputStream handles zero-length writes (it
should handle them fine, but all code has bugs).
> 2. most importantly, why the zip file that is written to disk is empty.
You haven't posted any code that writes to a disk file, so it's not
really possible to answer this question. Though, if you've posted all
of the code you have, then the lack of any code that would do that is
likely the answer itself.
You should look more closely at the section of the code that I described
as confusing. It reads from a file and writes the data to the
ZipOutputStream, which seems to be the opposite of what you say you want.
Pete