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

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

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.



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!! :)

Hi Helder,

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

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

Maykon Nogueira wrote:

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

Good to know Maykon! :) 


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.