I maded a simple java server program that send files to client.
The program works fine but when i load a very big file (1 GB) it takes 2 or 3 minutes for this line of code:
byte[] data = Files.readAllBytes(path);
Is there a wat to bypass this or make it faster (maybe by using a library)?
Thank's!