It's not a secret anymore!
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
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: 20972

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
I agree. Here's the link:
subject: File Upload
It's not a secret anymore!