3437
Views
8
Comments
Solved
How to use Zip Extension
Question

Hi,

     I want to download zip file. In database multiple files are present. I want to create a zip file of all that files and then that zip file must get downloaded. I know, for this purpose,we have to use zip extension,but I don't know the exact sequence.Please suggest me how to use zip extension.


Thanks and Regards,

Amit Joshi

2022-08-05 20-06-58
Hélder Anselmo
Solution

Hi Amit,

The sequence should be:

CreateZip()

Loop Documents

    AddFile(CreateZip.ZipHandle,...)

End Loop

CommitChanges(CreateZip.ZipHandle)

GetZipBinary(CreateZip.ZipHandle)

<DownloadWidget> - Using the Output from GetZipBinary
2018-12-26 10-10-15
Sagar Rathod

Hélder Anselmo wrote:

Hi Amit,

The sequence should be:

CreateZip()

Loop Documents

    AddFile(CreateZip.ZipHandle,...)

End Loop

CommitChanges(CreateZip.ZipHandle)

GetZipBinary(CreateZip.ZipHandle)

<DownloadWidget> - Using the Output from GetZipBinary

Hii, Hélder Anselmo I also tried this & it worked, thanks for the answer.



2022-08-05 20-06-58
Hélder Anselmo

Sagar Rathod wrote:

Hélder Anselmo wrote:

Hi Amit,

The sequence should be:

CreateZip()

Loop Documents

    AddFile(CreateZip.ZipHandle,...)

End Loop

CommitChanges(CreateZip.ZipHandle)

GetZipBinary(CreateZip.ZipHandle)

<DownloadWidget> - Using the Output from GetZipBinary

Hii, Hélder Anselmo I also tried this & it worked, thanks for the answer.




Awesome Sagar Rathod!! :)

2025-12-04 09-01-03
Kiet Phan
Champion

This works like a charm. Thank you !

2017-02-25 09-19-08
Amit Joshi

Hi Helder,

     Thank you very much.Now it's working fine.

2021-08-30 14-04-44
Maykon Nogueira

I just used this sequence of instructions and it worked correctly.

2022-08-05 20-06-58
Hélder Anselmo

Maykon Nogueira wrote:

I just used this sequence of instructions and it worked correctly.

Good to know Maykon! :) 


UserImage.jpg
Asha Burkul

HI,

Can anyone suggest me how i can use zip extension to zip main folder which contains multiple sub folders with documents? 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.