string fileID = Guid.NewGuid().ToString(); Byte[] imgBytes = p.ImgContent; string filePath = Server.MapPath("~/Docs/" + fileID + p.ImgName); FileStream fs = File.Create(filePath); fs.Write(imgBytes, 0, imgBytes.Length); fs.Flush(); fs.Close(); liContent.Text += "<a class='flipLightBox' href='" + filePath + "'>" + "<img class ='content' src=\"" + filePath + "\" />" + " " + "<span><b>" + p.Title + "</b>" + "<br>" + p.Description + "</span>" + "</a>";
pre
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)