Forum Discussion
6 Replies
- robinFormer Employee
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
- TimBurnsNew Contributor III
Thanks! That’s exactly what I needed. Good to know that I can tweak the output on the mapper to cast a binary document to a binary stream.
- dmillerFormer Employee
If you’re just trying to go from PDF to PDF, File Reader to File Writer should work.
- TimBurnsNew Contributor III
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.
- TimBurnsNew Contributor III
To clarify, I am making a dynamic all to a web service, the static reference is only to simplify the technical aspect.
- dmillerFormer Employee
Understood.