公司需要做一个支持短信收发的系统.不仅支持文字,还要支持彩信.
以前做的文字短信是用SOCKET传递字符串完成的.那么彩信该以什么样的格式传递呢?
望有经验的同志指教.谢谢

解决方案 »

  1.   

    呵呵 那确实如楼上所述
    用一个struct
    图片用byte[]表示
    结构如:
       public struct colormsg
       {
          public int textmsgLength;//文字信息长度
          public string textmsg;   //文字信息内容
          public byte[] imageb;    //byte[]保存的图片信息
        }
      

  2.   

    你看看System.Drawing这个名称空间嘛
      

  3.   

    Image.FromStream Method 
    Overloaded. Creates an Image from the specified data stream. 
    Name  Description  
    Image.FromStream (Stream):  Creates an Image from the specified data stream.  Image.FromStream (Stream, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information in that stream. 
     
    Image.FromStream (Stream, Boolean, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information and validating the image data.  
      

  4.   

    还是一样的传呀 还是socket  只不过如果内容比较大就分段