目录

Compression and Decompression Overview

Starting from API version 26.0.0, the compression and decompression module is supported, providing apps with data compression and decompression capabilities. It can be used in scenarios such as file packaging and distribution to reduce storage usage and accelerate network transmission. Based on different data sources and processing methods, the module provides the following three compression and decompression approaches:

Working Principles

As shown in the figure, the file compression and decompression module adopts a three-layer architecture:

The layered architecture provides good extensibility, allowing you to choose the appropriate compression and decompression approach based on your requirements.