I am not able to retrive file through sockets, it divides the byte array if data increases than a certain length. How can I resolve this issue?
Refer the link below. Hope it helps:)
Link: http://styjun.blogspot.com/2019/06/displaying-image-in-flutter-send.html
Sockets i/o (and especially when using UDP) is a low level communication protocol that gives you a lot of power but also requires you to solve problems like packets getting chopped up, getting dropped or arriving out of order. You can figure that all out yourself, but you may also want to look at using a package like socket.io-client-dart that takes care of all those edge cases.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.