Perhaps a bit more detail would make it easier for people to help
you.
1) What do you mean by 'server' and 'client' in this context?
2) How do you 'encode in base64'?
3) Can you post a screenshot before the encode/decode step on the
client, and then the same screenshot after encode/decode on the
client? Then (if the problem isn't obvious) please explain precisely
the nature of the problem.