469,306 Members | 1,587 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

code to transfer files from one computer to another

3
hello everybody..

can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
Nov 1 '07 #1
10 10660
r035198x
13,262 8TB
hello everybody..

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.
Nov 1 '07 #2
JosAH
11,448 Expert 8TB
hello everybody..

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?

kind regards,

Jos
Nov 1 '07 #3
dav3
94
perhaps it has to be a client server app?
Nov 1 '07 #4
gpbbdt
3
hello everybody,

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??
Nov 2 '07 #5
JosAH
11,448 Expert 8TB
Just google for "Java ftp" and you'll find everything you need.

kind regards,

Jos
Nov 2 '07 #6
heat84
118 100+
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.
Nov 12 '07 #7
JosAH
11,448 Expert 8TB
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.

kind regards,

Jos
Nov 12 '07 #8
heat84
118 100+
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.

Regards heat84
Nov 13 '07 #9
perhaps it has to be a client server app?
how to transfer files from client to server
Feb 22 '08 #10
r035198x
13,262 8TB
how to transfer files from client to server
Have you tried any of the suggestions mentioned in this thread?
Feb 22 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Ali Gohar | last post: by
4 posts views Thread by Weston Weems | last post: by
38 posts views Thread by Tom | last post: by
10 posts views Thread by David | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.