File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Filetransfer (FTP or similar)" Watch "Filetransfer (FTP or similar)" New topic

Filetransfer (FTP or similar)

Thomas Hansen

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 Hansen

Joined: Jul 30, 2000
Posts: 14
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:
Amazing what you can do with a web browser and clever use of google eh...
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Additionally you might take a look at this. Maybe an alternate solution, in case you are still looking...
- satya
ps: i will also review your link. thanks.

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: Filetransfer (FTP or similar)
It's not a secret anymore!