当前位置: 代码迷 >> J2EE >> struts下传文件时每次写多少字节
  详细解决方案

struts下传文件时每次写多少字节

热度:65   发布时间:2016-04-22 00:44:06.0
struts上传文件时每次写多少字节
while((count=in.read(Buffer))>0){
out.write(Buffer, 0, count);

}

在这里写入时每次多少字节,能否更改?

------解决方案--------------------
1024 ? 4*1024 别太小了就行,但也别过大
  相关解决方案