0.0 元关于HttpClient同时上传字符串和图片流对象的疑问

    public static byte[] postFromHttpClient(String path,
            Map<String, String> params, String encode) throws Exception {
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();// 用于存放请求参数
        for (Map.Entry<String, String> 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());
    }


我现在用这个 方法来上传字符串给服务器,现在需要把一个 图片流对象也加进去,求思路,求代码
需要登录后回答