queue = queueManager.AccessQueue(….); message = strInputMsg; queueMessage = new MQMessage(); utf8Enc = new UTF8Encoding(); byte[] inputByteArray = utf8Enc.GetBytes(strInputMsg.ToCharArray()); //********************************************** queueMessage.Write(inputByteArray); queueMessage.CharacterSet = 2208; queueMessage.Format = MQC.MQFMT_IMS_VAR_STRING; queuePutMessageOptions = new MQPutMessageOptions(); queue.Put(queueMessage, queuePutMessageOptions); queueManager.Commit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)