1

SQL Server 2012 でを使用してFileTableおり、ユーザーに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;
}
4

2 に答える 2