I have to send a ISO8583 message to an acquirer server and the switch want me to send the message with the APDU length before my whole message but i do not know how to send. The length is 4 bytes.
Example: i want to send the message (PAN-Expiry Date) 4427680000628820 1014
Header:30353530 Message:44276800006288201014
I want to send this through the socket: 30353530(00000014=20 in decimal) 4427680000628820 (PAN) 1014 (Exp)
Which should give me: 303535300000001444276800006288201014
Actually i do like this
buf[0]=0x30
buf[1]=0x35
buf[2]=0x35
buf[3]=0x30
How to add the length 00000014 after buf[3]?