Question
Murex Systems Sal
LB
Last activity: 20 Apr 2018 1:28 EDT
Zip Binary File and Word File and downloading the zipped file
Hello,
I need to zip several file and then download the zipped file on a click of a button.
How to create a zip file and how to download it using activity?
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Murex Systems Sal
LB
Hello,
I have solved my issue using custom java code. I the code reads the excel generated from MSOGenerateExcelFile (that is in the ServiceExport folder) and the word template. Zipped both files and downloaded the zip file.
Here is the code (Note: It takes the word file as step page):
Hello,
I have solved my issue using custom java code. I the code reads the excel generated from MSOGenerateExcelFile (that is in the ServiceExport folder) and the word template. Zipped both files and downloaded the zip file.
Here is the code (Note: It takes the word file as step page):
Pegasystems Inc.
IN
Hi,
Please refer the below discussion
https://collaborate.pega.com/question/download-multiple-files-external-system-zip-file
Thank You
Murex Systems Sal
LB
Hi,
All the codes that are in the post are getting the data from the attachments.
But in my case I have a generated excel file with a word file that are not in the clipboard.
The only code that worked for my case is the one with several activities(CreateZipOutputStream,AddZipEntry,CloseZipOutputStream,DownloadZIP) that are in this post: https://collaborate.pega.com/question/how-create-zip-archive-and-attach-case
But the problem is that the zip is still being corrupted even after fixing some part of the code.
What I need is a code that can be inserted inside an activity and just give it the resulted file from MSOGenerateExcelFile with another file and download the zip.
Thank you.
Accepted Solution
Murex Systems Sal
LB
Hello,
I have solved my issue using custom java code. I the code reads the excel generated from MSOGenerateExcelFile (that is in the ServiceExport folder) and the word template. Zipped both files and downloaded the zip file.
Here is the code (Note: It takes the word file as step page):
Hello,
I have solved my issue using custom java code. I the code reads the excel generated from MSOGenerateExcelFile (that is in the ServiceExport folder) and the word template. Zipped both files and downloaded the zip file.
Here is the code (Note: It takes the word file as step page):