I want upload image from android to spring controller. I already connected android with spring using rest api call (httpclient) My code is :
final String jsonUse
I was also doing same like you, then i have just used same library version and it worked,
I don't know how, but below code solved my problem
compile( 'org.apache.httpcomponents:httpmime:4.3.5') { exclude module: 'httpclient' } compile 'org.apache.httpcomponents:httpclient-android:4.3.5'