if (fileuploadImage.HasFile) { int length = fileuploadImage.PostedFile.ContentLength; byte[] imgbyte = new byte[length]; HttpPostedFile img = fileuploadImage.PostedFile; img.InputStream.Read(imgbyte, 0, length); Image1.ImageUrl = Server.MapPath(fileuploadImage.FileName);
if (fileuploadImage.HasFile) { fileuploadImage.SaveAs(Server.MapPath("~/") + fileuploadImage.FileName); Image1.ImageUrl = "~/" + fileuploadImage.FileName; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)