It looks like your messages are wrapped by MLP stop/start-characters. Quoting from the mlp_tcp.pdl:
/* This driver manages the transmission of messages using the HL7 defined
* MLP protocol. Each message is bounded by a start character <0xb>
* and a stop string <0x1c><0xd>.
*
* The phrase basic-msg recognizes this message format. Once recognized,
* the message data will be available from the ‘data’ field.
*/
So try reading these messages via tcp/ip by using the mlp-pdl. Or make sure the stop/start characters are removed when the messages are send by file.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands