• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Filetransfer (FTP or similar)

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic