Forum Discussion

TimBurns's avatar
TimBurns
New Contributor III
6 years ago
Solved

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 possible?

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

6 Replies

    • TimBurns's avatar
      TimBurns
      New 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.

  • dmiller's avatar
    dmiller
    Former Employee

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

    • TimBurns's avatar
      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.

      • TimBurns's avatar
        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.

  • aditya_gupta41's avatar
    aditya_gupta41
    Contributor

    Now it is coming as :

    Require it as no \ and in single column. I think i might need to change something in CSV formatter snap.