IsoMessage has a writeData method that returns the byte array that can be written to a stream, without any length headers. You can measure it and write your own length header, followed by that buffer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Can someone please advise how can i achieve the below message format before writing to socket :
Length of message followed by,
MTI (1100 or 1110 etc) followed by,
message
All this has to be in hex encoded format used by a ASCII channel client.
Thanks.
IsoMessage has a writeData method that returns the byte array that can be written to a stream, without any length headers. You can measure it and write your own length header, followed by that buffer.