Ask Dr. Dotnetsky - Display image from database and Path using MVC

Asked By anil babu on 16-Jul-13 06:29 AM
I am inserting images to database using MVC,
At the time of displaying particular id details data will be displayed but Image was not displaying  
At the time of inserting The complete path will be stored in a Folder in Project directory "~Image/Product" The image Name (EX:pg.jpg)will be stored in database
How can i display details in image based on Id
This is my sample code:
public ActionResult Details(int id)
        {
            Actor ac = db.Actors.Where(m => m.TagID == id).FirstOrDefault();
            if (ac != null)            {            
                  return View("ActorDetails",ac);
                }
            }
            return View("Index");
        }
VIEW:ActorDetails
@*@model MvcApplication11.Models.Actor*@
@model IEnumerable<MvcApplication11.Models.Actor>
 
<fieldset>
    <legend>SProduct</legend>
 @foreach (var item in Model)
 {
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => item.Name)
    </div>
 
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => item.Description)
    </div>
 
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Price)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => item.Price)
    </div>
 
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Image)
    </div>
    <div class="display-field">
        @*@Html.DisplayFor(model => model.Image)*@
        @*<img src="@Model.Image" height="50" width="50" />*@
        <img src="@Url.Content("~/Content/Actors/" + item.TagID + "/" + item.Image + "")" alt="@item.Name" width="100px" height="100px" />
    </div>
 }
</fieldset>
Please help us