日期:2014-05-19  浏览次数:20742 次

*******richTextBox读取数据库中的image字段的问题?简单,在线等********
richTextBox如何读取数据库中的image字段的问题?保存我已经写好了,winform中,有些不是很熟悉,谢谢;
我这样写总是不行,
  byte[]   bWrite   =   model.PlanExplain;   //返回的byte[]
                        System.IO.MemoryStream   mstream   =   new   System.IO.MemoryStream(bWrite,   false);
                        richTextBox.LoadFile(mstream,   RichTextBoxStreamType.RichText);

------解决方案--------------------
try

richTextBox.LoadFile(ms, RichTextBoxStreamType.PlainText);

or

richTextBox.LoadFile(ms, RichTextBoxStreamType.UnicodePlainText);