Takes a filename and uses the extension to return the correct Content Type.
public static string ContentTypeFromFilename(string fileName)
The filename with extension of the file to return the Content Type.
byte[] file = ... // Load file data;string filename = "MyFile.jpg";return File(file, SiUtil.ContentTypeFromFilename(filename), filename);