Base64 conversion problem between JS and Java

T

Tamir Weiss

I'm trying to send a JPEG image from JavaScript to a servlet.
The String is the same length on both sides (JS and servlet), but for
some reason the decoded byte array is always somewhat shorter on the
servlet side.

I've tried several implementation on both sides, but I'm getting the
same results every time.
I'm guessing it's something to do with the page\request encoding, but
I can't put my finger on it.

Any suggestion and ideas would be greatly appreciated.

Tamir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top