コード例 #1
0
        public ActionResult GetSprites()
        {
            byte[] imageBody = _resourceManager.GetBinaryResource("sprites.png");
            string mimeType  = "image/png";

            return(File(imageBody, mimeType));
        }
コード例 #2
0
        public ActionResult GetEmbeddedImage(string name)
        {
            byte[] imageBody = _resourceManager.GetBinaryResource(name);
            string mimeType  = "image/png";

            return(File(imageBody, mimeType));
        }