Posting base64 image to php server in android

后端 未结 3 1610
清歌不尽
清歌不尽 2021-01-17 03:56

I am working on a module in which user can upload the image to the server. To achieve this, I have to change selected image into Base64. After conversion, I have to use Jso

3条回答
  •  执笔经年
    2021-01-17 04:40

    Please assign encoded value to used params

         encodedString = Base64.encodeToString(b,Base64.DEFAULT);
          Log.e("LOOK", encodedString);
    
          new PostImage().execute(encodedString);
    

提交回复
热议问题