previous
|
index
|
next
File Uploads
You can get file content from a client by using the
getInputStream()
method in the
HttpServletRequest
class.
But you have to parse the request to separate out MIME (Multi-Purpose Internet Mail Extensions) multiparts.
Example:
A form page with a
file
input type:
http://redrock.d.umn.edu:8082/jspbook/multipartform.html
The
ShowForm
Servlet that simply echoes the form data to the display.
To actually upload and store the file on the server requires more work.
previous
|
index
|
next