I store image in folder App_Data in project Web API. I stored in the database with the path:
var path = Path.Combine(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/"), user.Username + ext);
From project MVC client i call Web Api, from path image i cannot show tag <img />
. Chrome show error: Not allowed to load local resource.
<img id="img_id" width="70px" heigh="70px" src="D:\Nguyen Nhu\Lap Trinh Hien Dai\ServerAPI\ServerAPI\App_Data\nophoto.gif"/>
How to fix it?