TimBurns
6 years agoNew Contributor III
How to stream a binary PDF file to a file using Snaplogic
I am trying to stream a binary PDF file to a file using Snaplogic.
The equivalent would be to the following command:
curl “http://www.pdf995.com/samples/pdf.pdf” --output …/out/pdf.pdf
Is this ...
- 7 years ago
Since the CSV Formatter currently doesn’t work with arrays, you will need to use a child pipeline that splits the array into separate docs that go into a CSV Formatter.
I’m attaching a couple of pipelines to demonstrate this flow:
FormatArrayToCSV_2019_02_28.slp (5.6 KB)
WriteCSVFiles_2019_02_28.slp (5.4 KB)The FormatArrayToCSV pipeline is the child. It splits the “$array” property in the incoming document and then passes the results to a CSV Formatter and FileWriter. You’ll need to change the JSON Splitter to split your array property.
The WriteCSVFiles pipeline is the parent. It just contains some mock data and feeds it into the child pipeline.