Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Lib_zipfile.h

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 215 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post