Announcement

Collapse
No announcement yet.

Write pdf file in byte array to remote via sftp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Write pdf file in byte array to remote via sftp

    I have been embedding BASE64 encoded PDF files in HL7 messages but now need to also write the PDF file to a remote computer using SFTP. I was hoping to use the File Writer to do this but for the life of this newbie I cant figure out how to correctly use the template to correctly write the byte array to the file. I know zero about Velocity. Any/all help will be greatly appreciated.

    Connect version: 3.0.3.7171

  • #2
    Originally posted by glennewing View Post
    I have been embedding BASE64 encoded PDF files in HL7 messages but now need to also write the PDF file to a remote computer using SFTP. I was hoping to use the File Writer to do this but for the life of this newbie I cant figure out how to correctly use the template to correctly write the byte array to the file. I know zero about Velocity. Any/all help will be greatly appreciated.

    Connect version: 3.0.3.7171
    Enable Binary mode on the File Writer, and then just drop the Base64-encoded string into the template.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment


    • #3
      Just what I needed. Thanks!

      Comment

      Working...
      X