04-02-2020 02:34 PM
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 possible?
Note the output doesn’t seem to be amenable to Document to Binary or any of the snaps I’ve tried.
Solved! Go to Solution.
04-02-2020 08:52 PM
You can stream files from HTTP via either REST GET Snap (with Binary as the “Response Entity Type” setting value) or the File Reader Snap.
Pipeline: 7185_rest-get-pdf_2020_04_02.slp (7.9 KB)
If you are calling an endpoint that sends a multipart response, you may also consider leveraging our Multipart Reader Snap
04-02-2020 03:05 PM
If you’re just trying to go from PDF to PDF, File Reader to File Writer should work.
04-02-2020 03:31 PM
I’m not sure how it would work. The GET object is a multi-part response.
Here’s what a file reader on the binary response looks like.
04-02-2020 03:38 PM
To clarify, I am making a dynamic all to a web service, the static reference is only to simplify the technical aspect.
04-02-2020 03:50 PM
Understood.