Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in uploading file to the server using Jersey

 
Astha Sharma
Ranch Hand
Posts: 250
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to upload file to the server from android using Jersey Web Service. I have written the code but there is some problem in the code. It shows error-
A message body reader for Java class com.sun.jersey.core.header.FormDataContentDisposition, and Java type class com.sun.jersey.core.header.FormDataContentDisposition, and MIME media type multipart/form-data was not found
I have added mimepull.jar to the classpath but still this error is getting generated.

This is my front end Java code-

This is my web service-

Please help me understanding what is wrong in this code.
Thanks in advance....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic