Posted: Mon May 28, 2007 6:55 am Post subject: Problem with Mesage size!!!
Newbie
Joined: 28 May 2007 Posts: 2
I'm have a problem with IBM.WMQ.MQMessage when i use the WriteString method because when i write a string of 32 characters or any length, the method convert the message to double size.
For example:
str = "hello"
MQMessage mqMsg = new MQMessage();
mqMsg.WriteString(str);
the length of str is 5 characters but when i refer to MessageLength it's show 10...
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
ybrahim1903 wrote:
Thanks for your help!!! Exist another way to do that? (better)
AFAIK .NET insists on Unicode. It's not a problem as long as whoever's reading the message specifies convert on the get. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum