public void updateImg(ImgFileForm form) {
        try {
            if (!this.isLogin)
                this.isLogin();
            if (this.isLogin) {
                form.setToken(this.getToken());
                PostMethod post = new PostMethod(UPLOAD_MATERIAL);
                post.setRequestHeader(USER_AGENT_H, USER_AGENT);
                post.setRequestHeader(REFERER_H, INDEX_URL);
                post.setRequestHeader("Connection", "Keep-Alive");
                post.setRequestHeader("Cookie", this.cookiestr);
                post.setRequestHeader("Cache-Control", "no-cache");

                /**
                 *   private String cgi = "uploadmaterial";
                 private String type = "2";
                 private String token = "";
                 private String t = "iframe-uploadfile";
                 private String lang = "zh_CN";
                 private String formId = "1";
                 */
                FilePart file = new FilePart("uploadfile", form.getUploadfile(), "image/jpeg", "UTF-8");
                System.out.println(form.getToken());
                Part[] parts = new Part[]{
                        new StringPart("cgi", form.getCgi()),
                        new StringPart("type", form.getType()),
                        new StringPart("token", form.getToken()),
                        new StringPart("t", form.getT()),
                        new StringPart("lang", form.getLang()),
                        new StringPart("formId", form.getFormId()),
                        file};
                MultipartRequestEntity entity = new MultipartRequestEntity(parts, post.getParams());
                post.setRequestEntity(entity);
                int status = client.executeMethod(post);
                if (status == HttpStatus.SC_OK) {
                    String text = post.getResponseBodyAsString();
                    System.out.println(text);

                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }