How to send multiple images to server using MultipartEntity from android

前端 未结 5 1166
Happy的楠姐
Happy的楠姐 2020-11-30 08:07

Hello I am sending Images and Text to php webservice using following code.

try {


            HttpClient httpClient = new DefaultHttpClient();
            H         


        
5条回答
  •  孤城傲影
    2020-11-30 08:59

    Why you can't just create array of json object of your images to base64 and post to server and at your server api read those images convert to byte and use as image. Check my answe and try to implement. In Android how to post data to webservice which is created in WCF?

    And the images you are getting from camera store them in uri in sdcard and letter read them. You can assign image name sequntialy. And read them from uri.

提交回复
热议问题