Base64 MLLP

I have a client sending us data MLLP in base64 format. I'm using the EnsLib.HL7.Adapter.TCPInboundAdapter adapter. What setting do I change to accept the base64?

  • 0
  • 0
  • 242
  • 1
  • 1

Answers

After you receive base64 string decode it:

set text="Hello @"
set text = $zcvt(text, "O", "UTF8")
set base64text = $system.Encryption.Base64Encode(text)
wrile base64text
>SGVsbG8gQA==
set decoded = $system.Encryption.Base64Encode(base64text)
set decoded = $zcvt(text, "I", "UTF8")
write decoded
>Hello @

I can't receive it. I get "Discarding received non-hl7 data (963)"