• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enctype='multipart/form-data in servlets

vaibhav punekar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m working on the imae processing project.The application involves
1)Client selects the to be processed
2)the file is uploaded on the web server where it is processed and sent back to the client.
Problem is servlet is not supporting
<form action="" method= post Enctype="multipart/form-data">
req.getContentType() is giving "text/html" only and so the servlet gives "socket closed:IOException"I m using "Fileupload and MultipartRequest class" in O'reilly book.
Is their any problem with the code or any of the browsers/servlets API does not support this encoding?please help.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!