This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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