如何发送的base64 EN图像codeD字符串服务器 [英] how to send base64 encoded string of image to server

查看:145
本文介绍了如何发送的base64 EN图像codeD字符串服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜在我的项目,我必须从applet的发送图像的Base64的字符串作为一个asp页面是IIS服务器上。当我尝试它通过HttpURLConnection类给它异常抛出:IllegalArgumentException:无效的系统字符在头消息

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

请帮我

在此先感谢

推荐答案

例如的 Base64En coderStream

或例如如何为的SetProperty HttpURLConnection类 autentifications

or example how to setProperty for HttpURLConnection autentifications

conn.setRequestProperty("Proxy-Authorization",
"Basic " + new sun.misc.BASE64Encoder().encode((proxyUser 
+ ":" + proxyPassword).getBytes()));

这篇关于如何发送的base64 EN图像codeD字符串服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆