我用udp来传送文件,然后把文件转化成byte[] filebytes来传送,然后提示错误java.net.SocketException: The message is larger than the maximum supported by the underlying transport: Datagram send failed,后来查了下可能是因为DatagramSocket中的sendBuffer的问题,于是我就将该buffer改成比字节数组filebytes长度大的值,结果还是不行,我不知道究竟该怎么解决了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货