jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes multipart/form-data encoded formdata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "multipart/form-data encoded formdata" Watch "multipart/form-data encoded formdata" New topic

multipart/form-data encoded formdata

Sander Fieten

Joined: Mar 08, 2001
Posts: 13
I'm using a simple form with two fields, one of them being of FILE type. This file must be multipart/form-data encoded when send to the server.
How can I easily get the values of the form fields, including the uploaded file. Must I read the InputStream and decode it myself?
paul sun

Joined: Dec 22, 2000
Posts: 28
Some already wrote some utils to do this for, eg, www.servlets.com.
I agree. Here's the link: http://aspose.com/file-tools
subject: multipart/form-data encoded formdata
It's not a secret anymore!