File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Sending file through http protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sending file through http protocol" Watch "Sending file through http protocol" New topic

Sending file through http protocol

ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Hi, I was wondering how do I send a file through a browser dialog box? After the user selected the file to be submited from an applet, how do I receive the file from the server side?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
U can use a bare html with ENCTYPE="multipart/form-data" as Form attribute.
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="Upload.jsp">
for to get idea about what to be done in the server side.
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Thank you so much! I really appreciate your help.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Sending file through http protocol
Similar Threads
Replace with Properties
Filling an ArrayList
Reading a data file in an applet
How to create a file on a machine connected through local network???
Sending file via http protocol