cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to stream a binary PDF file to a file using Snaplogic

TimBurns
New Contributor III

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?

image

Note the output doesnโ€™t seem to be amenable to Document to Binary or any of the snaps Iโ€™ve tried.

1 ACCEPTED SOLUTION

robin
Former 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.

image

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

View solution in original post

6 REPLIES 6

dmiller
Admin Admin
Admin

If youโ€™re just trying to go from PDF to PDF, File Reader to File Writer should work.


Diane Miller
Community Manager

TimBurns
New 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.

image

TimBurns
New Contributor III

To clarify, I am making a dynamic all to a web service, the static reference is only to simplify the technical aspect.

dmiller
Admin Admin
Admin

Understood.


Diane Miller
Community Manager