login about faq

In Chilkat Zip is it possible to write a zip entry by reading from a binary stream and write to a zip entry? I would like to avoid loading the entire data object into memory and writing all at once. With very large data sources this could cause problems loading the whole set into memory. I would like to loop through, filling a buffer, and writing the buffer contents to the zip entry until all the data has been read, then finalize the zip entry. Is it possible to do this?

asked Feb 26 '15 at 11:33

sgibson's gravatar image


No. I think the best choice is to write a temp file and then add the temp file to the zip via the AppendOneFileOrDir method (which just keeps a reference to the file and then when the .zip is written, it streams from the uncompressed temp file into the resultant zip).


answered Feb 26 '15 at 12:37

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 26 '15 at 11:33

Seen: 609 times

Last updated: Feb 26 '15 at 12:37

powered by OSQA