...
|
...
|
@@ -234,7 +234,7 @@ public class HttpClientUtil { |
|
|
con.setRequestProperty("Content-Type",
|
|
|
"multipart/form-data; boundary="
|
|
|
+ BOUNDARY);
|
|
|
|
|
|
log.info("file name is {},length is {}",file.getName(),file.length());
|
|
|
// 请求正文信息
|
|
|
// 第一部分:
|
|
|
byte[] head = ("--" + BOUNDARY + "\r\n" + "Content-Disposition: form-data;name=\"media\";filelength=\"" + file.length() + "\";filename=\""
|
...
|
...
|
|