Post values and upload Image to php server in android

后端 未结 2 972
无人共我
无人共我 2020-12-11 11:36

I am trying to upload image from android phone to php server with additional values,the method is post my php file look like this

if($_POST[\'val1\']){
  if         


        
相关标签:
2条回答
  • 2020-12-11 12:01

    I have found solution of my problem. I am making mistake at line string res=(" .... "); I have not adding "\r\n" after every content.I have add it and my code working properly

    link is very useful for me : http://wiki.forum.nokia.com/index.php/HTTP_Post_multipart_file_upload_in_Java_ME

    Thank you sir for helping me

    0 讨论(0)
  • 2020-12-11 12:05

    here is a nice article, http://blog.sptechnolab.com/2011/03/09/android/android-upload-image-to-server/. It works.

    0 讨论(0)
提交回复
热议问题