img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Png);
ile
A generic error occurred in GDI+
hatası alıyorsanız asağıdaki kodu deneyin
MemoryStream ms= new MemoryStream(); Bitmap bitmap = new Bitmap(img); bitmap.Save(ms, System.Drawing.Imaging.ImageFormat.Png); ms.WriteTo(Response.OutputStream);


[...] Kaynak:http://www.cihantopcu.com/png-ve-gdi-hatasi.html GDI, PNG, PNG ve GDI+ Hatası [...]