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

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

            return(File(imageBody, mimeType));
        }