How to use Zip Extension

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

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
Solution

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


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

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


suwun bang