public void ReplyWithImage(string path, string originalPath = null) { var pos = path.LastIndexOf('.'); if (pos > 0) { _actualContext.Response.ContentType = ServerBase.GetContentType(path.Substring(pos)); } ReplyWithFileContent(path, originalPath); }