byte[] image = fetchData.GetEmployeeImage(employeeNo); string physicalPath; FileStream file = File.Create(Environment.ExpandEnvironmentVariables("%temp%") + "\\" + employeeNo + ".jpg"); file.Write(image, 0, image.Length); physicalPath = Environment.ExpandEnvironmentVariables("%temp%") + "\\" + employeeNo + ".jpg"; imgProfilePic.ImageUrl = physicalPath.ToString(); file.Close();
<asp:ImageMap ID="imgProfilePic" runat="server">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)