Exemplo n.º 1
0
        public ActionResult SendFile(string base64String, string filename, string mime)
        {
            var imageSetCollection = new ImageSetCollection()
            {
                ImageSets = new List <ImageSet>()
                {
                    new ImageSet()
                    {
                        Name         = "test",
                        ImageSetType = ClaimImageSetTypes.BackSidePictures,
                        Images       = new List <Image>()
                        {
                            new Image()
                            {
                                FileName = filename,
                                MimeType = mime,
                                //ImageData = Convert.FromBase64String(base64),
                                Base64Image = base64String
                            }
                        }
                    }
                }
            };

            var service = new ApiServiceReference.MobileServiceClient("api");
            var result  = service.UploadImageSets(imageSetCollection);

            //var result = service.PostBase64(base64);

            return(View("Index"));
        }
Exemplo n.º 2
0
        public ActionResult SendFile(string base64String, string filename, string mime)
        {
            var imageSetCollection = new ImageSetCollection()
            {
                ImageSets = new List<ImageSet>() {
                    new ImageSet()
                    {
                        Name = "test",
                        ImageSetType = ClaimImageSetTypes.BackSidePictures,
                        Images = new List<Image>() { 
                            new Image() 
                                {
                                    FileName = filename,
                                    MimeType = mime,
                                    //ImageData = Convert.FromBase64String(base64),
                                    Base64Image = base64String
                                } 
                        }
                    }
                }
            };
            
            var service = new ApiServiceReference.MobileServiceClient("api");
            var result = service.UploadImageSets(imageSetCollection);
            //var result = service.PostBase64(base64);

            return View("Index");
        }