111,126
社区成员
发帖
与我相关
我的任务
分享///定义并实例化一个内存流,以存放提交上来的字节数组。
m = new MemoryStream(fs);
string physicalDir = Server.MapPath(rootDir);
if (!Directory.Exists(physicalDir)) Directory.CreateDirectory(physicalDir);
///定义实际文件对象,保存上载的文件。
Bitmap bmp = new Bitmap(m);
bmp.Save(Server.MapPath(filePath));