Menu

Meesage length in Hex

Help
Steve
2017-08-13
2017-08-13
  • Steve

    Steve - 2017-08-13

    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.

     
  • Enrique Zamudio Lopez

    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.

     

Log in to post a comment.