...
Add some file to ZIP archive.
...
...
OpenArchive()
...
Open ZIP archive file.
Syntax:
Code Block |
---|
eqZIP::OpenArchive(m.tcZipName, m.tnAppend) |
Parameters:
m.tcZipName
The ZIP archive file.m.tnAppend
A append flag.Return values
.T. - Archive create/open successfully..F. - Archive do not create/open successfully.
...
CloseArchive()
Close ZIP archive file.
Syntax:
Code Block |
---|
eqZIP::CloseArchive(m.tcComment) |
Parameters:
m.tcComment
...
OpenNewFile()
Open file handle.
Syntax:
Code Block |
---|
eqZIP::OpenNewFile(m.tcFileName, m.ttCreated, m.llIWontUTF8, m.lcPassword, m.liCRC32) |
Parameters:
m.tcFileName
...
m.ttCreated
...
Code Block |
---|
Object.AppendFile(tcFilename [, tcNameInArchive [, llIWontUTF8 [, lcPassword]]]]) |
Code Block | ||
---|---|---|
| ||
Object.AppendFile(tcFilename [, tcNameInArchive [, llIWontUTF8 [, lcPassword [, lcComment]]]]])
|
Code Block | ||
---|---|---|
| ||
Object.AppendFile(tcFilename [, tcNameInArchive [, llIWontUTF8 [, lcPassword [, lcComment
[, liLevel [, liMemLevel [, liStrategy [, liWBITS]]]]]]]])
|
Parameters
tcFileName
The source file name.
tcNameInArchive
File name in ZIP archive. Default codepage is ANSI. If value of llIWontUTF8 parameter is TRUE, then string will be convert to UTF-8.
llIWontUTF8
A wish uses UTF-8 for encoding file name.
Info |
---|
For UTF-8 |
...
encoding or |
...
password is needy zlib.dll version 1.25 or higher. |
...
lcPassword
File password.
...
Return values
0 - File append to ZIP archive.
-102 - ZIP_PARAMERROR
-103 - ZIP_BADZIPFILE
-104 - ZIP_INTERNALERROR
...
AppendFile()
...
Add some file to ZIP archive.
Syntax:
Code Block |
---|
eqZIP::AppendFile(m.tcFilename, m.tcNameInArchive, m.llIWontUTF8, m.lcPassword) |
Parameters:
m.tcFileName
The source file name.m.tcNameInArchive
File name in ZIP archive.m.llIWontUTF8
A wish uses UTF-8 for encoding file name.
Info |
---|
For UTF-8 encoding or password is needy zlib.dll version 1.25 or higher. |
m.lcPassword
File password.Return values
-1 - The source file doesn't exists
-2 - The source file cannot open
0 - File append to ZIP archive
-102 - ZIP_PARAMERROR
-103 - ZIP_BADZIPFILE
-104 - ZIP_INTERNALERROR
...
WriteData()
...
Write data to opened file handle.
Syntax:
Code Block |
---|
eqZIP::WriteData(m.tcData) |
Parameters:
m.tcData
Data which will be write to file handle.
Return values
-102 - ZIP_PARAMERROR
-103 - ZIP_BADZIPFILE
-104 - ZIP_INTERNALERROR
...
CloseFile()
Close file handle.
Syntax:
Code Block |
---|
eqZIP::CloseFile() |
...
SYS2007()
Calculate CRC32 checksum for data.
Syntax:
Code Block |
---|
eqZIP::SYS2007(m.lcData) |
Parameters:
...
lcComment
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 |
---|---|
-1 | The source file doesn't exists. |
-2 | The source file cannot open. |
-3 | The file is big (greather then 4GiB). |
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) |
Remarks
Applies To: XFRX#ZIP