2011年3月24日

图片的存取

摘要: //存图片到DB private void button1_Click(object sender, EventArgs e) { Stream ms; byte[] picbyte; OpenFileDialog ofdSelectPic = new OpenFileDialog(); ofdSelectPic.ShowDialog(); string f = ofdSelectPic.FileName; ms = ofdSelectPic.OpenFile(); picbyte = new byte[ms.Length]; ms.Position = 0; ms.Read(picbyte, 阅读全文

posted @ 2011-03-24 10:16 joyous jeny 阅读(231) 评论(0) 推荐(0) 编辑

导航