HTTP post with image and data
问题 I am using apache HTTP Client for callin rest endpoints. I want to call a POST request with image and some more form data as parameters. I can do them separately with to requests like first for the form data and the other for the image alone. Is there any possible solution so that i can do it with one request. Below is the api call http://<url>?hint=hi&def=ready&image=<imagefile> 回答1: Use Multipart Request. Commons Apache File Upload API has very good API for the same. Apache Commons