I am writing a client-server program in JAVA in which I am sending a file from server to client.As the file size may be quite high therefore I decided to divide the file in 5 parts and then send it to the same client in 5 different Threads.
- My Algorithm is to use Java Zip API and create a zip file of the file to be sent,then I will divide the Zip file into 5 parts. The problem is that there is not method in [ZIP API][2] that could divide the file. This is the tutorial that I am referring for sending files through Thread. Anyone who can guide me is there anything wrong with my Algorithm Or do I have to do with different strategy?