Two users can share any type of file over the network.
Suggested Flow:
You can make a server on one computer and client on the other. When the server started it should send a request to a client to accept file from the server. When client accepts the request, file should be read in chunks and transferred to the server using sockets. On the server side, create a file with same name and extension and start writing the data sent by the client; into it until all data is written. Also inform both users at the end whether file was transferred successfully or not. Things can be much easier if you built a protocol (control information) and make your client and server follow it.
Concepts Involved:
v Networking (Client/Server programming using sockets)
v Multithreading
v File handling
v Exception handling
v Swing and AWT packages
v String Manipulation
About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy