I have a situation where I need to send a fairly large amount of data via zip files by email.
The company server limits emails to 4 mg in size, so I can't send one big zip file that, for example, might be 10mg.
I need to:
1. create a zip file
2. add a file to it
3. test how big the zip file is.
4. if it's larger than 4 mg, back out the file I just added use the< 4mg file to attach to the email.
5. Lather, rinse, repeat until all files have been sent.
How do I tell what the current size of the zip file will be after adding a file to it but before I close the archive?