Replies: 1 comment 1 reply
-
You should do some kind of chunking, reading the file in smaller pieces, then track the progress on how many pieces you've sent vs how many are left to send. This is also a requirement to support large files, since buffers cannot be bigger than 2 GiB, and you cannot move more data than that in a single IO. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am tring to build a netty file server,it is great for me to use TCP for file transfer, but I can't get the file transfer progress when I use FileChannel, what is the correct way to use it?
This is My Server code:
Client code:
I can't find the correct way to transfer files on it, there are only examples of using http in the netty example, is there any documentation or example for using TCP?
Beta Was this translation helpful? Give feedback.
All reactions