Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

How to Zip a file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Zip a file

    Hi am using Mirth 3.10 with the basic plugins which included Zipj4. I have the need to zip a file. I have tried several transformer examples but I cant get it to work. ANy ideas or templates for this?

  • #2
    Post your code attempt please.
    Diridium Technologies, Inc.
    https://diridium.com

    Comment


    • #3
      I figured it out, I had to escape my file paths!

      Comment


      • #4
        Great. I would still be helpful to post code or a link in this forum or elsewhere where you found the code.
        Diridium Technologies, Inc.
        https://diridium.com

        Comment


        • #5
          MIRTH: Create encrypted ZIP (File) (github.com)

          Comment


          • #6
            azdave this is excellent! Thanks for sharing.

            Comment


            • #7
              a follow-up when using zip4j how do I use a nas file path? I would prefer not to map a drive.
              var zipFile = new Packages.net.lingala.zip4j.core.ZipFile("\\davesna s\\xfr\\files\\newfile.zip")
              That tells me file not found

              Comment


              • #8
                java File io utils has no concept of a remote file system. There are many kinds of remote file systems it would inherently need to handle protocols and credentialing. If that all "just worked" we wouldn't have an SMB reader/writer in mirth based on an smb java library.

                A relevant read: Basics - reading/writing remote files using Java - Stack Overflow
                Diridium Technologies, Inc.
                https://diridium.com

                Comment

                Working...
                X