Created
January 15, 2012 21:52
-
-
Save terjetyl/1617605 to your computer and use it in GitHub Desktop.
Make dll downloadable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public FileStreamResult Download() | |
{ | |
var fullQualifiedPathToDll = Path.Combine(Server.MapPath("~/"), "bin/ImageResizer.dll"); | |
var fileInfo = new FileInfo(fullQualifiedPathToDll); | |
var myFileStream = new FileStream(fullQualifiedPathToDll, FileMode.Open); | |
return File(myFileStream, "application/octet-stream", fileInfo.Name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment