コード例 #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());
        }
コード例 #2
0
 public string ProfileImgUpload([FromBody] ProfileImageComp img)
 {
     return(userRepo.UploadProfilePicture(img));
 }
コード例 #3
0
 public string PostImage([FromBody] ProfileImageComp img)
 {
     return(postRepo.UploadImage(img));
 }