Exemplo n.º 1
0
        public async void Post()
        {
            byte[] file = await Request.Content.ReadAsByteArrayAsync();

            await FaceApi.MakeAnalysis(file);

            var response = Request.CreateResponse(System.Net.HttpStatusCode.Accepted);
        }
Exemplo n.º 2
0
        public async Task <ActionResult> FileUpload(Byte[] file)
        {
            if (file != null)
            {
                ViewBag.valores = await FaceApi.MakeAnalysis(file);

                return(View("ConsultarCara"));
            }
            else
            {
                return(View("Index"));
            }
        }