OK again assuming source has encoded the HL/7 component correctly.
I set up a single field VRL
Type String
Max Width -1
NO ‘SF Sep’ or ‘Escape Pair’
Global Properties:
Field Seperator – ,
Default SubField Separator – x20
Termination – (empty)
I set up a Fileset/local inbound thread and outbound thread. I used some procs we have to make sure I only got the file I wanted but other than that the Protocol properties are unremarkable.
I built a one line Xlate with HL/7 in and my VRL out. I COPY’d the OBX-5.5 component (that is where my base64 encoded PDF is) to my single VRL field.
I used _hci_static routee invoking my Xlate.
File gets created.
Now the file which gets created is still base64 encoded. So any system wanting to use the file needs to decode it.
In order to create a decoded file, Tcl will be needed as Charlie has shown.
If I get time I might see if I can just add decode Tcl somewhere inside so file handling will still be done by the engine rather than Tcl.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.