How Send Binary Message (UserDataPdu) more that 256 byts
Posted: Sat Nov 07, 2009 2:07 pm
I am submitting binary messages (UserDataPdu) as following
here sTextHex is variable of my hex string
example:
foreach (SubmitSm sm in req)
{
sm.UserDataPdu = HexStringToByteArray(sTextHex);
sm.RegisteredDelivery = 1;
}
SubmitSmResp[] resp = Client.Submit(req);
when the length of sTextHex is less then 256 bytes it is running okay but when the length is more than 256 bytes it showing error
error:
Value was either too large or too small for an unsigned byte.
please help me about this
here sTextHex is variable of my hex string
example:
foreach (SubmitSm sm in req)
{
sm.UserDataPdu = HexStringToByteArray(sTextHex);
sm.RegisteredDelivery = 1;
}
SubmitSmResp[] resp = Client.Submit(req);
when the length of sTextHex is less then 256 bytes it is running okay but when the length is more than 256 bytes it showing error
error:
Value was either too large or too small for an unsigned byte.
please help me about this