'Nifi Getfile Unzip and Putfile
How to fetch files and unzip and save them in separate folders under the output folder in Nifi. Eg:100.zip (input) unzip this and save pdf in the output/pdf folder and XML in the output/XML folder?
Solution 1:[1]
What you are looking for is to Route the data based upon whether it is PDF or XML and then depending on the route, put it in the proper file. Either you can do this via a RouteOnAttribute if the .pdf or .xml is in one of the attributes or use the RouteOnContent to route upon specific content.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mike R |
