c# - GDI+System.Runtime.InteropServices.ExternalException HResult=0x80004005 Message=GDI+ 中发生一般错误
问题描述
我正在尝试将图片框中的图像保存到局域网中另一台计算机上的路径。它给了我这个错误:
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+
它适用于某些 jpg 文件而不适用于其他文件。
我收到以下错误消息:
string pathFolder = "\\\\DESKTOP-PDP6PSF\\Data\\daily\\";
picturebox1.Image.Save(pathFolder+nameImage1+".jpg", ImageFormat.Jpeg);