[英]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. 大家好在我的项目中,我必须将图像的BASE64字符串从applet发送到IIS服务器上的asp页。 When I try it by HttpURLConnection it give Exception IllegalArgumentException: invalid charater in header message
当我通过HttpURLConnection尝试时,它给出Exception IllegalArgumentException:标头消息中的无效字符
Please help me 请帮我
Thanks in advance 提前致谢
for example Base64EncoderStream 例如Base64EncoderStream
or example how to setProperty for HttpURLConnection autentifications 或示例如何为HttpURLConnection增强设置setProperty
conn.setRequestProperty("Proxy-Authorization",
"Basic " + new sun.misc.BASE64Encoder().encode((proxyUser
+ ":" + proxyPassword).getBytes()));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.