var ms=new MemoryStream(byte[] bytes); using(var fs=new FileStream(路径 例如:"D:\image\myimage.jpg")) { ms.writeto(fs); }