[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Handling Multipart Request

c_eric_ray do-not-reply at jboss.com
Wed Aug 9 13:58:13 EDT 2006


You can use the javax.mail.internet.MimeMultipart class to parse the multipart mime body yourself or...

you can cheat to some degree and use apache commons file-upload to parse the body. it will treat everything as a FileItem, but if the parameters are small enough (like simple string) it will keep them in memory. You will have to access the parts like they were file, but, all the parsing is done for you...or....

you could look at the FileUploadBase.parseRequest method and see how they are parsing the multipart body and steal from there and make it your own...

There are probably other packages out there that provide similar behavior.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964118#3964118

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964118



More information about the jboss-user mailing list