- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
public void upload() {
String name = po.getName(); // file name
String str = po.getStr()+"/plugins/j2me"; // url
byte[] raw = snap.getData(); // file data
String cmd = "uploadpic";
String auth = po.getUserId();
String albumId = po.getUserId();
String type = po.getType();
String remarks = po.getDemo();
String[] props = { "cmd","auth","albumId", "public", "remarks" }; //property name
String[] values = { cmd, auth, albumId, type, remarks }; // property value
try {
String BOUNDARY = "---------7d4a6d158c9"; // separate line
String MULTIPART_FORM_DATA = "multipart/form-data";
StringBuffer sb = new StringBuffer();
for (int i = 0; i < props.length; i++) { // send each property
sb = sb.append("--");
sb = sb.append(BOUNDARY);
sb = sb.append(""r"n");
sb = sb.append("Content-Disposition: form-data; name="""+ props[i] + """"r"n"r"n");
sb = sb.append(URLEncoder.encode(values[i],"UTF-8"));
责编:罗莉
上一篇:Java中数组的成员
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>