how to send base64 encoded string of image to serv

2019-03-06 08:37发布

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

1条回答
时光不老,我们不散
2楼-- · 2019-03-06 09:25

for exampleBase64EncoderStream

or example how to setProperty for HttpURLConnection autentifications

conn.setRequestProperty("Proxy-Authorization",
"Basic " + new sun.misc.BASE64Encoder().encode((proxyUser 
+ ":" + proxyPassword).getBytes()));
查看更多
登录 后发表回答