淘先锋技术网

首页 1 2 3 4 5 6 7
MemoryStream ms=new MemoryStream();
using (FileStream fs = new FileStream("C:\\1.jpg", FileMode.Create))
{
      BinaryWriter bw = new BinaryWriter(fs);
      bw.Write(ms.ToArray()); 
      bw.Close();
      fs.Flush();
}

转载于:https://www.cnblogs.com/newmin/archive/2011/03/23/1992163.html