How to create archive
The process of creating an archive can be broken down into several steps:
- Create a runtime archiver.
- Create an archive in storage or memory.
- Add the required files/directories to the archive as entries.
- Close the archive.
First, create a Runtime Archiver object.
Next, create an archive to be saved in storage or memory.
Then, add the required files to the archive. The files in the archive are called Entries.
If you created an archive in memory, use the following function to obtain the binary data of the archive.
Finally, close the archive.