ZipMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

ZipMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Compression MBS Compression Plugin 8.6 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for writing to a zip file.

This is a simple class which uses zlib and has some limitations:


But it works nice to provide a zip file to clients. For example a download of JPEG files in an archive with one download from Web Edition.

Be aware that you can't compress Mac applications with this class, as the we don't preserve permissions, so the decompressed file has not the right flags set to make it executable.

See also ArchiveReaderMBS and ArchiveWriterMBS classes for more features and compression formats.

Constants

Constant Value Description
AppendStatusAddInZip 2 One of the values for the constructor.
AppendStatusCreate 0 One of the values for the constructor.
AppendStatusCreateAfter 1 One of the values for the constructor.
CompressionBestCompression 9 One of the compression level constants.
CompressionBestSpeed 1 One of the compression level constants.
CompressionDefault -1 One of the compression level constants.
CompressionNo 0 One of the compression level constants.
MethodDeflated 8 One of the compression method constants.
MethodNone 0 One of the compression method constants. Use this value for no compression.
StrategyDefault 0 One of the strategy modes.
StrategyFiltered 1 One of the strategy modes.
StrategyFixed 4 One of the strategy modes.
StrategyHuffmanOnly 2 One of the strategy modes.
StrategyRLE 3 One of the strategy modes.
ZipBadZipFile -103 One of the error constants.
ZipInternalError -104 One of the error constants.
ZipOk 0 One of the error constants.
ZipParameterError -102 One of the error constants.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine


The items on this page are in the following plugins: MBS Compression Plugin.


ZipFileInfoMBS   -   ZLibCompressMBS


💬 Ask a question or report a problem