This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Upload" Watch "File Upload" New topic

File Upload


Joined: Feb 13, 2000
Posts: 21
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.
Tom P
Ranch Hand

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

Joined: Dec 14, 1998
Posts: 20488

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

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
It is sorta covered in the JavaRanch Style Guide.
subject: File Upload
Similar Threads
Inheritence with JSP
File constructor
JspTranslate: No such tag.................