string s = HttpContext.Current.Server.MapPath("");

            string s = HttpContext.Current.Server.MapPath("");

获取当前文件夹路径

而后用相对路径读取图片

原文地址:https://www.cnblogs.com/wangkaipeng/p/4166074.html