Q:

how to send base64 encoded string of image to server

HI to all In my project I have to send BASE64 string of an image from applet to an asp page which is on IIS Server. When I try it by HttpURLConnection it give Exception IllegalArgumentException: invalid charater in header message
Please help me
Thanks in advance

A:

for exampleBase64EncoderStream
or example how to setProperty for HttpURLConnection autentifications 
conn.setRequestProperty("Proxy-Authorization",
"Basic " + new sun.misc.BASE64Encoder().encode((proxyUser 
+ ":" + proxyPassword).getBytes()));

