Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add some file to ZIP archive.

Code Block
Object.AppendFile(tcFilename [, tcNameInArchive [, llIWontUTF8 [, lcPassword]]]])


eqZIP::
Code Block
titleXFRX 22.0
Object.AppendFile(tcFilename [, tcNameInArchive [, llIWontUTF8 [, lcPassword [, lcComment]]]]])


Code Block
titleXFRX 22.1
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.

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:

ValueDescription
0Default strategy
1Filtered data
2Huffman encoding
3RLE
4Fixed

liWBITS

 Specifies dictionar size in bits. Allowed values are 9..15.

Return values 

Number

ValueDescription

...

-1

...

The source file doesn't

...

exists. 

...

-2

...

The source file cannot open.

...

-3The file is big (greather then 4GiB).
0File 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