我FileTable
在 SQL Server 2012 中使用 a,我希望我的用户从FileTable
. 我应该使用什么路径?
public ActionResult DownloadFile(string filename)
{
//string filename = Request.QueryString["MOVIE_FILE"];
string path = "\\Maaz-laptop\\mssqlservermaaz\\FileDBFileStreamDirectory\\FileDirectory";
Response.ContentType = "application/force-download;";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename);
Response.WriteFile(Server.MapPath(path) + filename);
Response.End();
return null;
}