Get your CodeRanch badge!*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 39575
    
  27
Possibly jCIFS, assuming that an SMB share has been set up on the remote machine.


Ping & DNS - updated with new look and Ping home screen widget
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: 39575
    
  27
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transferring files over the network
 
Similar Threads
suggestions required for serial port interfacing in J2ME
JAS for PDAs
Question about Text pad. Hope some one can answer it
Running java program on remote PC
suggestions required for developing mobile application