public FileContentResult GetFile(int id)
        {
            var imagedata   = db.ReturnUtilisateur(id).ImageProfil;
            var contentType = DBProvider.GetContentType(imagedata);

            return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower())));
        }
Esempio n. 2
0
        public FileContentResult GetFile(int id)
        {
            var imagedata   = db.ReturnEvenement(id).affiche;
            var contentType = DBProvider.GetContentType(imagedata);

            return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower())));
        }