Hi Mark I am working on a way to have browser based uploads to Amazon S3 buckets. As part of the upload form you need a policy in JSON format that is base64 encoded then signed using hmacSha1 that signature is then then base64 encoded.
Following that recipe, and using LiveCode's base64encode() function, the signature I created did not match the one calculated by the S3 service. I then read that you had to strip the linebreaks from the base64 encoded JSON policy. When I stripped the linebreaks of the initial base64 encoding of the JSON policy using the script that Michael suggested the signature was accepted by Amazon. I did not have to strip the linebreaks from the base64 encoded hmacsha1 signature. Thanks again for the help Michael. Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Removing-linebreaks-from-base64encoded-string-tp3803116p3803815.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
