The Servlet reads a parameter that is sent over HTTP using POST. The Parameter contains about 3000 characters of data of text. In the request.getParameterMap we can see 13 entries and the inital parameter has been split into strings of random sizes charachters chunks. eg some are about around 400 length, others are around 1000 length.
Why has this occured? Java can handle big String sizes, so why is it not just in one big string.
IF this was my problem I would try to use TCPMON to capture the exact request being sent. If you can't insert TCPMON into the request then I would use the request getInputStream() to capture the exact body in bytes (rather than getReader which will do a character conversion.) I bet you will find a surprise of some sort
You've got to encode it in Base64. As you're using C++, I can't tell much about that I think you can find lots of samples on Internet. Or maybe a library you're using already has this functionality. Here's one : http://base64.sourceforge.net/ [ March 07, 2007: Message edited by: Satou kurinosuke ]