System.IO.IOException: file used by another process

前端 未结 10 2360
囚心锁ツ
囚心锁ツ 2020-12-14 16:59

I\'ve been working on this small piece of code that seems trivial but still, i cannot really see where is the problem. My functions do a pretty simple thing. Opens a file, c

10条回答
  •  清歌不尽
    2020-12-14 17:37

     System.Drawing.Image FileUploadPhoto = System.Drawing.Image.FromFile(location1);
                                     FileUploadPhoto.Save(location2);
                                     FileUploadPhoto.Dispose();
    

提交回复
热议问题