ASP.Net MVC - Img Src Server Path
问题 Visual Studio 2012 - ASP.net - MVC 4 I am having troubles displaying an image from a server path which is stored in a database. I am using HttpPostedFileBase to retrieve the file the user has uploaded: using (var uow = _db.CreateUnitOfWork()) { if (imageUpload != null && imageUpload.ContentLength > 0) { var fileName = Path.GetRandomFileName() + Path.GetExtension(imageUpload.FileName); var path = Path.Combine(System.Web.Hosting.HostingEnvironment.MapPath("~/Uploads"), fileName); imageUpload