Bitmap bi = new Bitmap(byteArrayToImage(FileUpload1.FileBytes)); //This code working fine string path = Server.MapPath("Images/") + FileUpload1.PostedFile.FileName; bi.Save(path , ImageFormat.Jpeg); Image1.ImageUrl = "Images/" + FileUpload1.PostedFile.FileName; //This code didn't displaying the image. bi.Save(Path.GetTempPath() + FileUpload1.PostedFile.FileName, ImageFormat.Jpeg); Image1.ImageUrl = Path.GetTempPath() + FileUpload1.PostedFile.FileName;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)