Originally posted by Amit A. Patil:
[First 8 bytes employeeId][4 bytes Area Code][7 bytes Salary].....
I also guessed that this would be the case.
But bytes will not be sufficient , even you need to know the encoding.Considering ASCII or LATIN1 codepage that takes one byte per user character.It should be quite simple and remaining places you can pad using spaces.
I dont want to hard code the positioning and width while populating this byte array
There should be some metadata for this which would define as how the fields should lay in the request.