0

I am working on the client side and I am facing problems in encoding/decoding data. The decoded string received at server is different from the string sent by the client. I can't figure out what might be the problem. Has anyone encountered this problem before? Is there something wrong at server or have I done something wrong?

I checked the result for for some string "abc" at my own end and I am getting the correct result. But when server does the decoding, it shows different result.

For Base64 I used this.

halfer
  • 19,471
  • 17
  • 87
  • 173
Nitish
  • 13,487
  • 26
  • 128
  • 252

2 Answers2

0

Nitish i think now the fault you doing is in the sending it to server if both approach are using on client and server end then it will be a fault in the http message sending to server cross check that thing i think you will get the result.

B25Dec
  • 2,073
  • 3
  • 29
  • 50
0

How are you decoding on server side. which APIs are you using ? You may want to look to Commons Codec. Also you can look at this discussion for base64 encode/decode in java

Community
  • 1
  • 1
Saurabh
  • 7,804
  • 2
  • 21
  • 30