使用POST和HttpURLConnection发送文件
HttpURLConnection
URL url;HttpURLConnection urlConnection = null;try { url = new URL("http://example.com/server.cgi"); urlConnection = (HttpURLConnection) url.openConnection();} catch (Exception e) { this.showDialog(getApplicationContext(), e.getMessage());}finally { if (urlConnection != null) { urlConnection.disconnect(); }}
AlertDialog
Bitmap image = this.getBitmap()
View
HttpPost
InputStreamEntity
呼如林