2010-03-12 19 views

Antwort

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

und in Ihrer Aktion:

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

oder 'Return-Datei (...)' –

Verwandte Themen