Commit 890af5fa authored by 张永's avatar 张永

1

parent 5f9e9e36
......@@ -315,7 +315,7 @@ public class HttpsUtil {
// 把文件已流文件的方式 推入到url中
DataInputStream in = new DataInputStream(new FileInputStream(file));
int bytes = 0;
byte[] bufferOut = new byte[1024];
byte[] bufferOut = new byte[1024]; // 1M
while ((bytes = in.read(bufferOut)) != -1) {
out.write(bufferOut, 0, bytes);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment