Vote UpVote

Delphi and Facebook Base64 Url Encoding

Marco's Tech Blog – Was working on a Delphi server used to build a Facebook application, when I bumped into an odd Base64 decoding issue. If you look to the Facebook page documenting their Signed Request parameter, you can see it has a first part with an encoded signature (which I won't really mention here) plus some JSON data encoded in Base64. This looked trivial, but as I started using Indy's TIdDecoderMIME class, the result will be correct... but only at times. Other times, the final } of the JSON string was missing. Now, since there were three closing braces at the end of the specific error situation, I ...
Favorite? Off-Topic? marcocantu @ 2012-01-09 23:12


Visits: 563
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)