SFTPing PDFs

Clovertech Forums Cloverleaf SFTPing PDFs

  • Creator
    Topic
  • #122228
    Jason Russell
    Participant

      Hello all! I thought we had this issue resolved, but seemingly not. We are doing a two-step process to ultimately move a PDF to a remote server. Step 1 we use the HL7 to grab, extract and decode the PDF and place the PDF into a file by itself. We then have a pickup process (fileset-local) and SFTP it (no translation, no data manipulation, no procs).

      The first issue we noticed is when the encoding was set to ASCII, the engine tried to read the PDF line by line, which is not what we want. We found that changing the encoding to Binary fixed that issue, and read the entire file. However, it seems that that encoding is actually messing up the internal data of the PDF. Not so much that the PDF is ruined, but it’s making things garbled and in some cases unreadable.

      There’s not a whole lot of settings here to mess with, is there something we’re missing/not set correctly?

    Viewing 1 reply thread
    • Author
      Replies
      • #122229
        Paul Bishop
        Participant

          Do you also have the “Style” set to “eof” in the Protocol Properties?  That is another thing that can mess up the PDF file.  We have processes that pick up PDF files using threads with no issues (version 19.1), although we are just delivering the files to a different cloverleaf server via TCP/IP.  Also, make sure that all threads that the PDF goes through are set to “binary” Encoding.

          Paul Bishop
          Carle Foundation Hospital
          Urbana, IL

        • #122230
          Jason Russell
          Participant

            Looks like changing it back to ASCII actually worked.

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.