while ((len = read.Read(buff, 0, 256)) != -1)
{
socket.Send(buff, 0, len, SocketFlags.None);
read.Flush();
}
read.Close();
socket.Close();
if (inputStream != null)
while ((read=inputStream.read(buf))!=-1)
{
fileOut.write(buf, 0, read);
}
fileOut.close();
socket.close();
}
C#给JAVA传送的时候,有时传送完整(解压时,有时出现文件损坏),有时传送不完整
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货