Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/11/2010 at 13:37, xxxxxxxx wrote:
User Information: Cinema 4D Version: 12 Platform: Windows ; Mac ; Mac OSX ; Language(s) : C++ ;
--------- Hi,
I know how to open a zipfile, but now I need to start a zipfile from scratch-from a couple of strings in memory, and save it in a specific dir.
Has anybody done this, or has some pointers? I can't find much in the forum posts. Are there any ziblib examples.
Regards Jan
On 15/11/2010 at 21:59, xxxxxxxx wrote:
It should be quite straight forward:
Filename fn("/path/to/file.zip"); AutoAlloc<ZipFile> zipfile; zipfile->Open(fn, FALSE, FALSE); zipfile->CopyInFileInZip("/path/to/infile.txt", "infile.txt"); zipfile->Close();
and directly from memory you would need to call CreateFileInZip, WriteInFileInZip and CloseFileInZip, i guess