Bloom.Api.RequestInfo.ReplyWithImage C# (CSharp) Method

ReplyWithImage() public method

public ReplyWithImage ( string path ) : void
path string
return void
        public void ReplyWithImage(string path)
        {
            var pos = path.LastIndexOf('.');
            if(pos > 0)
                _actualContext.Response.ContentType = ServerBase.GetContentType(path.Substring(pos));

            ReplyWithFileContent(path);
        }