2010-03-12 15 views

Odpowiedz

13
<%= Html.ActionLink("download file", "download") %> 

iw swoim działaniu:

public ActionResult Download() 
{ 
    byte[] contents = GetFileContentsFromDatabase(); 
    return File(contents, "image/jpeg") 
} 
2
return new FileContentResult(byte[], contentType) 
+0

lub po prostu 'powrotnej Plik (...)' –

Powiązane problemy