Open file handle.
...
Code Block | ||
---|---|---|
| ||
Object.OpenNewFile(tcFileName [, ttCreated [, llIWontUTF8
[, lcPassword, liCRC32 [, llBIGFile [, lcComment]]]]]) |
Code Block | ||
---|---|---|
| ||
Object.AppendFile(tcFileName [, ttCreated [, llIWontUTF8 [, lcPassword, liCRC32 [, llBIGFile [, liLevel [, liMemLevel [, liStrategy [, liWBITS]]]]]]]]) |
Parameters
tcFileName
File name in ZIP archive. Default codepage is ANSI. If value of tcFileName parameter is TRUE, then string will be convert to UTF-8.
...
File comment. Default codepage is ANSI. If value of llIWontUTF8 parameter is TRUE, then string will be convert to UTF-8.
liLevel
Compression level. Allowed values are 1-9.
liMemLevel
Memory level specifies how much memory should be allocated.
liStrategy
Strategy specifies the compression algorithm. Allowed values are:
Value | Description |
---|---|
0 | Default strategy |
1 | Filtered data |
2 | Huffman encoding |
3 | RLE |
4 | Fixed |
liWBITS
Specifies dictionar size in bits. Allowed values are 9..15.
Return values
Number
Value | Description |
---|---|
0 | File append to ZIP archive |
-102 | Bad paremeters. (ZIP_PARAMERROR) |
-103 | File is not a zip file. (ZIP_BADZIPFILE) |
-104 | Internal at error at zipping data. (ZIP_INTERNALERROR) |
...