I am beginner in c#. In my project, if I do try the below code to save a copy of image, it is giving error "A generic error occurred in GDI+." . I have gone through this link, but I have no knowledge of what is he saying.
I tried the below code:
Bitmap bmpLarge = new Bitmap(ofdFlagsLarge.FileName);
bmpLarge.Save(@"\..\..\" + strLargePath); /* ERROR */
Can someone please assist me to save a image from the local PC directory itself to other directory on the same machine..
You just want to copy a file?
Why not use:
System.IO.File.Copy("source", "destination");
http://msdn.microsoft.com/en-us/library/c6cfw35a.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With