how to store 64bit image my local folder?

Apr 10 2018 4:42 AM
 how to resolve this issue i am getting bellow error how to save image in my folder? i referred so many articales but not able to save image.
 
 

A generic error occurred in GDI+.

 
 
byte[] imageBytes = Convert.FromBase64String(listimage);
MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length);
ms.Write(imageBytes, 0, imageBytes.Length);
System.Drawing.Image image = System.Drawing.Bitmap.FromStream(ms, true);
image.Save(Server.MapPath("~/Flickcinema/ShowImage"), System.Drawing.Imaging.ImageFormat.Jpeg);

Answers (5)