Chuyển tới nội dung chính

Cách tạo archive

Quy trình tạo một archive có thể được chia thành nhiều bước:

  1. Tạo một runtime archiver.
  2. Tạo một archive trong bộ nhớ lưu trữ hoặc bộ nhớ tạm.
  3. Thêm các tệp/thư mục cần thiết vào archive dưới dạng các mục nhập.
  4. Đóng archive.

Đầu tiên, tạo một đối tượng Runtime Archiver.

Create Runtime Archiver node


Tiếp theo, tạo một archive để lưu vào bộ nhớ lưu trữ hoặc bộ nhớ tạm.

Create Archive in Storage and Create Archive in Memory nodes


Sau đó, thêm các tệp cần thiết vào archive. Các tệp trong archive được gọi là Entries.

Add Entry From Storage and Add Entry From Memory nodes

Add Entries From Storage and Add Entries From Storage Directory nodes


Nếu bạn đã tạo một archive trong bộ nhớ tạm, hãy sử dụng hàm sau để lấy dữ liệu nhị phân của archive.

Get Archive Data node


Cuối cùng, đóng archive.

Close Archive node