Ejemplo n.º 1
0
        public string UploadImage(ProfileImageComp img)
        {
            ImageUploadParams uploadParams = new ImageUploadParams()
            {
                File           = new FileDescription(@img.Base64ImageData),
                Transformation = new Transformation()
                                 .Width(512)
                                 .Height(512)
            };

            return(imgCloud.UploadAsync(uploadParams).Result.Uri.ToString());
        }
Ejemplo n.º 2
0
 public string ProfileImgUpload([FromBody] ProfileImageComp img)
 {
     return(userRepo.UploadProfilePicture(img));
 }
Ejemplo n.º 3
0
 public string PostImage([FromBody] ProfileImageComp img)
 {
     return(postRepo.UploadImage(img));
 }