I am using this method in the controller to save an image.
public void DrawSiteDiagram(string image) {
byte[] bytes = Convert.FromBase64String(image); string fileName = DateTime.Now.ToString().Replace("/", "-").Replace(" ", "- ").Replace(":", "") + ".png"; string path = Path.Combine(Server.MapPath(ConfigurationManager.AppSettings["PhotosUploadPath"]), fileName); Image image1; using (MemoryStream ms = new MemoryStream(bytes)) { image1 = Image.FromStream(ms); }
image1.Save(path, System.Drawing.Imaging.ImageFormat.Png);
}

image is getting saved..........................


but when I open the image there is nothing in the image  means image is empty?????????????????
how could this be possible beacuse when i use sam string data to access the image in new browser window ...

Go to the complete details ...