Skip to main content

The new Zip Workflow Activity, how to use?

Comments

1 comment

  • Permanently deleted user

    Found the solution, it's cheekily simple.

    The Zip Activity takes in an InputArgument called "Sources", which is accepts IDictionary<string,byte[]>

     

    - The Values of this Dictionary represent the byte data of the files you want to zip.

    - The Keys of this Dictionary represent the file paths within the zip archive.  For example, if one of the keys is something like "(FolderA)/(FolderB)/(Document's Name)", then a FolderA will be created inside the Zip Folder, with a FolderB inside of that, with the Document inside of FolderB.

     

    The solution of the problem turns out to be that when you declare the Document's Name, it must have a suffix that denotes what kind of file it is.  If it's a PDF file, then you have to write in "(Document's Name).pdf" for the computer to tell that it's a PDF file.

    0

Please sign in to leave a comment.