can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
Double posting is not only confusing to people trying to follow your problem, it is also illegal (against site rules).
Now, no one is going to write this code for you and dump it on you on a silver plate as explained here. We are however willing to help you write the program yourself if you show that you are doing something on it yourself.
can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
But there already is 'ftp'; it was made especially for this purpose and it is quite
good at it imho. Why do you want to reinvent the wheel? And why is it urgent?
First of all my sincere apology to ask for code which is against the rule of this site. As I am new to this forum i was not aware of the rules.
I am learning Java and I am doing the project on P2P file sharing networks. And I am finished with my GUI. I just want any good material which will guide me using FTP. So can anyone tell me any site or ebook which will give information on this??
There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.
There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.
I'd rather not; it introduces another hurdle: serial communication using Java. Better
open a ServerSocket then and contact a server running on the localhost.
I'd rather not; it introduces another hurdle: serial communication using Java. Better
open a ServerSocket then and contact a server running on the localhost.
kind regards,
Jos
Thats a good idea jos but if you open a server socket , it ceases to be peer to peer , seems he wants a peer to peer solution. Opening a server socket makes it client-server.
Comment