Upload a picture from Android to PHP server

前端 未结 2 555
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 14:08

I am trying to upload file to a php server from my android device. There is thread with same question but he is using a different method. My Android side code works fine and

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 14:54

    Change your code in the following way for the correct escape sequences:

    Replace

    String lineEnd = "rn";
    

    with

    String lineEnd = "\r\n";
    

提交回复
热议问题