日期:2014-05-18 浏览次数:21082 次
            byte[] picbyte;  //图片保存在数组中?
            Stream ms;
            OpenFileDialog ofdSelectPic = new OpenFileDialog();
            ofdSelectPic.ShowDialog();
            ms = ofdSelectPic.OpenFile();
            picbyte = new byte[ms.Length];
            ms.Position = 0;
            ms.Read(picbyte, 0, Convert.ToInt32(ms.Length));
------解决方案--------------------