0.0 元public static byte[] postFromHttpClient(String path, Map params, String encode) throws Exception { List formparams = new ArrayList();// 用于存放请求参数 for (Map.Entry entry : params.entrySet()) { formparams.add(new BasicNameValuePair(entry.getKey(), entry .getValue())); } UrlEncodedFormEntity entity = new UrlEncodedFormEntity(formparams, encode); HttpPost httppost = new HttpPost(path); httppost.setEntity(entity); HttpClient httpclient = new DefaultHttpClient();// 看作是浏览器 HttpResponse response = httpclient.execute(httppost);// 发送post请求 return readStream(response.getEntity().getContent()); } 我现在用这个 方法来上传字符串给服务器,现在需要把一个 图片流对象也加进去,求思路,求代码

需要登录后回答