View Single Post
Old 27-09-2007, 02:29 PM   #5
Peter Duniho
Guest
 
Posts: n/a
Re: Zip file using a stream

Chris Fink wrote:
> Jon,
>
> Thank You for your advice. I've switched to the ZipLib and have a few issues.
> #1 The last file is not being added to the ZipOutputStream entries
> #2 When I test the zip file by writing the stream to disk, it is 0 length,
> but valid.


In addition to what Jon wrote, I'm wondering if the ZipOutputStream
class has some internal buffering and provides a Flush() method or
something like that.

I've never used it myself, but the symptoms you describe sound
consistent with failing to flush some intermediate buffer.

Thought, in the case of the #2 problem, it's not clear to me what you
mean when you write "it is 0 length, but valid". How can a 0 length
file be a valid ZIP file?

Pete
  Reply With Quote