A generic error occurred in GDI+System.Runtime.InteropServices.ExternalException HResult=0x80004005 Message=A generic error occurred in GDI+

0

I'm trying to save an image in picture box to a path on another computer in the LAN. It give me this error:

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+

It works for some jpg files and not for others.

I'm getting the following error message:

string pathFolder = "\\\\DESKTOP-PDP6PSF\\Data\\daily\\";
picturebox1.Image.Save(pathFolder+nameImage1+".jpg", ImageFormat.Jpeg);
c#
image
save
box
asked on Stack Overflow Mar 25, 2019 by Ardalan Husin • edited Mar 25, 2019 by karel

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0