I got working server and client applications, they work perfect while sending small files, but when I try to send for example movie file that is 700mb over socket it gives m
Just like you're using a buffer on the server side the send the data, use a buffer in your applet/client to read it. If you're transferring a large file, you will clearly run out of memory when you use readFully()
. This method is only useful for cases where you know your data will be really, really small.