code: public UploadMediaResponse uploadMedia(MediaType type, File file) {
          UploadMediaResponse response;
          String url = "http://file.api.weixin.qq.com/cgi-bin/media/upload?access_token=#&type=" + type.toString();
          BaseResponse r = executePost(url, null, file);
          response = JSONUtil.toBean(r.getErrmsg(), UploadMediaResponse.class);
          return response;
      }
docs: 上传资源，会在微信服务器上保存3天，之后会被删除
  
  @param type 资源类型
  @param file 需要上传的文件
  @return 响应对象