Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

File Uploading

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to know that how can i upload files on some other machine.
The environment which i am using is
Java, Tomcat 4.0, Eclipse. and server is running on my machine.
thanx
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sahil,
I guess I need to know a little more about your situation.
If you are running an FTP server, Java can act as an FTP
client in two ways,
using RFC1738 you can make a URL style connection (Java 1.4 supports this)
http://www.faqs.org/rfcs/rfc1738.html
Using RFC959 you can use traditional FTP,
http://www.faqs.org/rfcs/rfc959.html
you need an additional toolkit like the one from Jakarta net
http://jakarta.apache.org/commons/net/maven-reports.html
You can upload to or download from the FTP server.
Another alternative is to use a web server like Tomcat and upload
the file using a multipart form. You will need a package like the
one from O'Rielly
http://www.servlets.com/cos/index.html
Post a little more about your situation and you will get more specific
information. Are you trying to write your own server?
Don
 
Yeah, but does being a ninja come with a dental plan? And what about 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
    Bookmark Topic Watch Topic
  • New Topic