想做一个可以把图片资源存放在数据库里或者数据文件里的东西,高手请指点一下谢谢

解决方案 »

  1.   


    RichTextBox rt = new RichTextBox();
    ASCIIEncoding encoding = new ASCIIEncoding();
     Byte[] rtf1 = new Byte[Convert.ToInt32((readnews.GetBytes(1, 0, null, 0, Int32.MaxValue)))];
                                long bytesReceived1 = readnews.GetBytes(1, 0, rtf1, 0, rtf1.Length);
                                rt.SelectedRtf = encoding.GetString(rtf1, 0, Convert.ToInt32(bytesReceived1));这是把图片取到richtextbox里的,你要想放到别的地方就自己换个地方吧