Question7Replies2194Views divyasripadarthy Member since 2013 13 posts Cognizant Technology Solutions Posted: 3 years agoLast activity: 3 years 10 months ago Closed Solved Does File listener listens a file of Zip extension?Hi Team,I have a requirement to listen a source and import Zip file into PRPC through file listener.Later I need to attach that to a case, and based on some condition, I need to even send a mail with this zip file as an attachment.Is it possible and if yes, please provide the solution to achieve this.Thanks,Divya Sri Padarthy Data Integration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 3 years agoNarasimha522 PEGA replied to divyasripadarthyHi, I think there is no limitation on type of the file and also you can use this zip file as attachment to case and send mail. please follow this post might be useful. https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.h… management/case-designer/case-wide-properties/attachment-categories/cm-attachment-types-con.htm Thanks, Narasimha Posted: 3 years agoHabeebBaig PEGA replied to divyasripadarthyWhen you write attach file name to .pyAttachFile property give the "filename.zip" so with this you can take care of the extension and pyAttachStream you can assign buffered stream captured from file listener for the file. Posted: 3 years agodivyasripadarthy Cognizant Technology Solutions replied to divyasripadarthyHi, I am able to achieve this, but the attachment in the mail is in encoded format. Please suggest how to decode it. Thanks, Divya Sri Padarthy Posted: 3 years agoKevinZheng_GCS PEGA replied to divyasripadarthyTry to use java code similar to this: Base64Util.decode(java.io.InputStream is) You can check the complete set of Base64Util API in EngineAPI menu. Posted: 3 years agodivyasripadarthy Cognizant Technology Solutions replied to divyasripadarthyHi Kevin, I have already tried this, but its not working. Thanks, Divya Sri Padarthy Posted: 3 years agodivyasripadarthy Cognizant Technology Solutions replied to divyasripadarthyHi All, Is there any other alternative? Thanks, Divya Sri Padarthy Posted: 3 years agoSantanu PEGA replied to divyasripadarthyLets try to break your requirement into 3 parts 1. Pick the zip file using file listener 2. Attach it to a case 3. Send email with this zip file. What exactly your error message is saying ? Also, I found a very nice article which might help you further.