byte[] buf = new byte[1024];
while (remoteBIS.read(buf) != -1) {
localOS.write(buf);
}
修改为
byte[] buf = new byte[1024];
int tmplen;
while ((tmplen=remoteBIS.read(buf))>=0) {
localOS.write(buf,0,tmplen);
}
while (remoteBIS.read(buf) != -1) {
localOS.write(buf);
}
修改为
byte[] buf = new byte[1024];
int tmplen;
while ((tmplen=remoteBIS.read(buf))>=0) {
localOS.write(buf,0,tmplen);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货