Two Laptop Bag*
The moose likes Java in General and the fly likes File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Upload" Watch "File Upload" New topic
Author

File Upload

Vrinda
Greenhorn

Joined: Feb 13, 2000
Posts: 21
Hello
I am writing a Java application that basically uploads a file from a local machine to a server. Can someone tell me how this can be done.
Regards
Vrinda
Tom P
Ranch Hand

Joined: May 06, 2000
Posts: 88
Sockets or servlets.
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20660
    ∞

Open an HTTP connection from an applet to a servlet. The open an object stream and the file as one object.


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Rama Raju
Greenhorn

Joined: Jul 07, 2000
Posts: 12
Could u please tell me whether u r using HTML or applets From the local machine? U can really get good help from Orielly's book on Servlets
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Upload