Base64 Encoding/Decoding Problem

55 views
Skip to first unread message

Steve

unread,
May 28, 2012, 4:24:11 PM5/28/12
to fatsecret-p...@googlegroups.com
Hi,

I'm writing a mobile application which will use your REST API. When I was implementing the "signature" part, I found your server had some problem on decoding the signature when it has a '+' character. It seems your server parses the signature with "HttpUtility.ParseQueryString", which will parse '+' as a ' ' (space character). For example, "xKa2+xjiN4DG5DT/htJxADxdzeM=" will be treated as "xKa2 xjiN4DG5DT/htJxADxdzeM=".

I have tried to replace '+' with "%2b" in the signature, but the server did not decode "%2b" as '+'. Instead, it treated "%2b" as 3 characters. Do you have any solution for that?

Any help is appreciated!

Thanks,

Best,
Steve


Reply all
Reply to author
Forward
0 new messages