wood burning stoves 2.0*
The moose likes Java in General and the fly likes Transferring files over the network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Transferring files over the network" Watch "Transferring files over the network" New topic
Author

Transferring files over the network

Cheeta Sharma
Greenhorn

Joined: Apr 19, 2013
Posts: 2
Hello all,

I am developing an application in which i have to transfer files over the internet, i.e. from PC A to PC B.

Issue i am facing is that i only have the credentials for the PC B and I cant run any application on it. So i guess Sockets are something that i am not looking for.
I want some API using which i can run my application on PC A and then provide the credentials for PC B and the path of the folder where i want to copy the files.

Any suggestions for what i am looking for here?

Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
Possibly jCIFS, assuming that an SMB share has been set up on the remote machine.


Ping & DNS - my free Android networking tools app
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Ulf Dittmer wrote:Possibly jCIFS, assuming that an SMB share has been set up on the remote machine.

So it will connect to shared folder just like we do with Windows Explorer? It must be Windows specific, right?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
SMB is baked into Windows, but can be used on other OSes as well. That's what the Samba server is all about. jCIFS is merely the client library.
Cheeta Sharma
Greenhorn

Joined: Apr 19, 2013
Posts: 2
Thanks for the replies. I will try SMB now. Hope it works for me.
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Cheeta Sharma wrote:Thanks for the replies. I will try SMB now. Hope it works for me.

Did it work for you? Can you provide simple example of how you solve the problem.
 
Don't get me started about those stupid light bulbs.
 
subject: Transferring files over the network