Here is my code to save image in a folder,but i am getting this error(a generic error occurred in gdi+).
Could someone please help me?
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If (Not System.IO.Directory.Exists("d:/posimage")) Then
System.IO.Directory.CreateDirectory("d:/posimage")
End If
PictureBox1.Image.Save("d:/posimage")
End sub