2016-12-03 4 views
0

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; 
} 

答えて

-1

あなたが

\\SERVERNAME\FILESTREAM_WINDOWS_SHARE_NAME\FILESTREAM_TABLE_NAME\FILETABLE_DIRECTORY\ 

はについては、このリンクをたどってください。例えば、次のパスを使用する必要がありますFileTable Example

関連する問題