摘要:
Imageimage=Image.FromFile("C:\\1.jpg");MemoryStreamms=newMemoryStream();image.Save(ms,ImageFormat.Jpeg);ms.Flush();ms.Seek(0,SeekOrigin.Begin);byte[]buffer=newbyte[ms.Length];ms.Read(buffer,0,(int)ms.Length);//这里已经转成了字节MemoryStreamms2=newMemoryStream(buffer,0,buffer.Length);ms2.Seek(0,Seek 阅读全文