MemoryStream
ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemIOMemoryStreamClassctorTopic2.htmbyte[] b=..
MemoryStream s=new MemoryStream(b);

解决方案 »

  1.   


      byte[] b; ...... Stream s=new Stream();
    s.Write(b,0,b.Length);
      

  2.   

    FileStream fs = new FileStream(@File1.Value, FileMode.OpenOrCreate, FileAccess.Read);
    byte[] barrData = new byte[fs.Length];
    fs.Read(barrData, 0, System.Convert.ToInt32(fs.Length));
    fs.Close();
      

  3.   

    不好意思写反了,呵呵
    这下对了
    try
    {
    FileStream fs = new FileStream(@FilePath,FileMode.OpenOrCreate,FileAccess.Write);
    fs.Write(Image,0,Image.Length);
    fs.Close();
    }
    catch
    {
    }
      

  4.   

    byte[] a=new byte[10];
    Stream sm=new Stream();
    Stream.Read(a,0,a.Length);