aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Filetransfer (FTP or similar) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Filetransfer (FTP or similar)" Watch "Filetransfer (FTP or similar)" New topic
Author

Filetransfer (FTP or similar)

Thomas Hansen
Greenhorn

Joined: Jul 30, 2000
Posts: 14
Seems this is a good day for questions, so here goes another one.
I need to give users some way to move files from their local machine running my Java client to a server (which I don't have root privilegies on). The files are mostly images and PDF files so what I basically need is some FTP or FTP-like functionality to push the data over the wire to the server, preferable something remotely secure like FTP with username and password (I have FTP access to the server).
I would sleep very well if there is some nice call that takes the file, username, password and server as parameters and just returns true if all went well... I don't suppose I'm _that_ lucky as I have not yet found an easy way.
If someone has any experience doing this kind of thing, and feels like sharing it will be really appreciated.
On beforehand thanks,
Thomas
Thomas Hansen
Greenhorn

Joined: Jul 30, 2000
Posts: 14
Ha,
Since I have this nasty habit of replying to my own postings with a solution I figured I'd might as well make this no exception.
Seems someone has allready made more or less what I was looking for, Java is great eh?
Well, if it works, I'll say Thanks Bret!
For the rest of you the link is:
http://www.stanford.edu/~bstaylor/cs/ftpconnection/
Amazing what you can do with a web browser and clever use of google eh...
Thomas
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Thomas:
Additionally you might take a look at this. Maybe an alternate solution, in case you are still looking... http://www.jguru.com/faq/view.jsp?EID=304022
regds.
- satya
ps: i will also review your link. thanks.

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filetransfer (FTP or similar)