wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Tranfer files between java and unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Tranfer files between java and unix" Watch "Tranfer files between java and unix" New topic

Tranfer files between java and unix

jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54

I successfully established connection with unix server from my java program and I am able to retrieve and store files.

But I dont know how to store a folder to the server.

Can any one help me out?

Thanks in advance.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

I think your post belongs to "Sockets and Internet Protocols" forum.
What do you mean by storing a folder to the server?
jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54
It means storing the folder into unix box.

If this query doesn't belong to this forum then please move to the respective one.

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404

Do you have an FTP connection, or a Telnet connection (or SFTP or SSH or .....)? Or even a connection to a server application that you wrote yourself and is therefore totally proprietary?

If you don't provide us with any details at all, we cannot even start to give help. Please take a look at TellTheDetails and NotACodeMill for some things that might help you get good answers here.

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959

You don't "store a file to a server", you use a server to store files in itself (or wherever). That means you need some sort of server program (don't confuse a server hardware for the actual server softwares!). This can be a file server such as Samba, or it could be a custom web application that has a file upload function. Or any one of a number of server programs such as ftp.

Unix and Windows are alike in this regard. If you want to transfer a file into another computer using a network connection, there has to be a server program running on the target machine that's willing to receive and store the data.

Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the JavaRanch Style Guide.
subject: Tranfer files between java and unix
Similar Threads
How I connect to remote Unix Box from standalone java application?
Font embedding of Fop in unix
saving xml file to a different server/dir in a servlet
java mail attachments
Connecting to Unix via Windows