HttpRequestBase request = Request;
if (request != null && request.Files.Count > 0 && request.Files[0] != null && request.Files[0].ContentLength > 0)
{
var file = request.Files[0];
if (file != null)
{
var path = Path.Combine(Server.MapPath("~/Content/images"), file.FileName);
file.SaveAs(path);
employee.UserImage = System.IO.File.ReadAllBytes(path);
}
}
...By This Way You Can Convert And Insert The Selected Image Path