Hi!
I want to upload pictures on a server using HttpURLConnection.
My
servlet is deployed in
Tomcat 5.5.17.
The problem is that the upload never stops and the wrong data is uploaded.
On the server the uploaded value is allways 255 for each byte.
I belive that the communication is binary.
Did anyone encounterd this problem?
Any help will be appreciated.
Thank you.
Servlet code:
Client code:
web.xml descriptor: