android应用中如何使用http post方法在php服务器上发送图像文件

android应用中如何使用http post方法在php服务器上发送图像文件,android,Android,我想在我的php服务器上发送图像文件,而不是在php服务器上上载…我只想使用post方法发送到php服务器…所以请告诉我有关dat…并帮助我..您可以这样做 try { Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(imageUrl).getContent()); } catch (MalformedURLException e) { e.printStackTrace();

我想在我的php服务器上发送图像文件,而不是在php服务器上上载…我只想使用post方法发送到php服务器…所以请告诉我有关dat…并帮助我..

您可以这样做

try {
      Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(imageUrl).getContent());
    } catch (MalformedURLException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }
可能重复的