使用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()ViewHttpPostInputStreamEntity
慕村225694
呼如林
随时随地看视频慕课网APP