File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Tranfer files between java and unix" Watch "Tranfer files between java and unix" New topic
Author

Tranfer files between java and unix

jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54
Hi

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
Bartender

Joined: Nov 08, 2003
Posts: 3479

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.

Thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11503
    
  95

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: 16228
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tranfer files between java and unix