Replies: 3 comments 1 reply
-
Maybe start with https://github.com/pacmano1/Mirth-Snippets/blob/main/create_zip_with_wildcards.js Not a full answer there but not entirely sure what you need to do. |
Beta Was this translation helpful? Give feedback.
-
You can use the sevenzip java binding lib: https://sevenzipjbind.sourceforge.net/compression_snippets.html#update-add-remove-items Or take a look at this: https://forums.mirthproject.io/forum/mirth-connect/support/16298-code-template-automatic-mirth-backup the script uses zip for adding multiple files for backup. |
Beta Was this translation helpful? Give feedback.
-
I use the following in a Destination transformer step for one of our interfaces that produces some files in a folder, then ZIPs then up. This code also uses some extra stuff I am leaving in that I pass in to name the file that maybe you would find helpful.
|
Beta Was this translation helpful? Give feedback.
-
I have a need to read PDF files from a directory and then combine them all into one zipped file before sending to the final destination. I've seen some post where MC can zip a file but is there a way to zip multiple files and make one zip file in one read?
Beta Was this translation helpful? Give feedback.
All reactions