groovy - Base64Encode for AWS not matching Amazon Example -
i seem failing @ first hurdle in quest amazon s3 browser-based uploads. using amazon's example shown here : http://docs.aws.amazon.com/amazons3/latest/api/sigv4-post-example.html using groovy/java, i'm unable encode example post policy , produce same encoding amazon. { "expiration": "2015-12-30t12:00:00.000z", "conditions": [ {"bucket": "sigv4examplebucket"}, ["starts-with", "$key", "user/user1/"], {"acl": "public-read"}, {"success_action_redirect": "http://sigv4examplebucket.s3.amazonaws.com/successful_upload.html"}, ["starts-with", "$content-type", "image/"], {"x-amz-meta-uuid": "14365123651274"}, {"x-amz-server-side-encryption": "aes256"}, ["starts-with", "$x-amz-meta-tag", ""], {"x-amz-credential": &