开发者

how to send image file on php server using http post method in android application

开发者 https://www.devze.com 2023-02-14 01:55 出处:网络
i want to send image file on my php server not upload on php server....i want to only sen开发者_运维百科d to php server by using post method...so pls tell me about dat..and help me..You can do somethi

i want to send image file on my php server not upload on php server....i want to only sen开发者_运维百科d to php server by using post method...so pls tell me about dat..and help me..


You can do something like this

try {
      Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(imageUrl).getContent());
    } catch (MalformedURLException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消