The new Zip Workflow Activity, how to use?
Hi there,
In Essentials 3.11 there is the new Zip Activity that enables you to create a Zip Folder that stores different documents, that's great.
So far though, of the Zips I've created, the documents that I've stored into them can't tell what their own File Type is. I have to manually declare what application is to be used to open them. Like if I store a PDF file, when I open the Zip Folder, I have to manually select Adobe Reader.
So what am I supposed to do in order for the document to automatically recognise that it is a PDF file upon opening the Zip Folder?
And can anyone explain to me the correct/intended way to use the Zip Activity?
-
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar