private void submitImage(Bitmap bitmap) {
   byte[] content = BMapUtil.getContentFromBitmap(bitmap);
   if (content.length > 0) {
     Intent intent = new Intent(UploadLicenceActivity.this, UploadProgressActivity.class);
     intent.putExtra("type", KplusConstants.UPLOAD_AUTH_LICENCE_PHOTO);
     intent.putExtra("content", content);
     startActivityForResult(intent, REQUEST_FOR_UPLOAD_LICENCE);
   }
 }
  @Override
  protected void loadData() {
    vehicleNumber = getIntent().getStringExtra("vehicleNumber");
    imagePath = getIntent().getStringExtra("imagePath");
    uploadLabel = getIntent().getStringExtra("uploadLabel");
    if (!StringUtils.isEmpty(imagePath)) {
      bitmap = BMapUtil.getBitmapFromPath(imagePath, 500);
      bitmap = BMapUtil.rotateByExifInfo(bitmap, imagePath);
      if (bitmap != null) {
        try {
          ivImage.setImageBitmap(bitmap);
          resizeImageAndInfoView();
          new AsyncTask<Void, Void, String>() {
            @Override
            protected String doInBackground(Void... params) {
              try {
                return MobclickAgent.getConfigParams(UploadLicenceActivity.this, "useWenTong");
              } catch (Exception e) {
                e.printStackTrace();
                return null;
              }
            }

            protected void onPostExecute(String result) {
              if (!StringUtils.isEmpty(result) && result.equals("1")) {
                useWenTong = true;
              } else useWenTong = false;
            }
          }.execute();
        } catch (Exception e) {
          finish();
        }
      } else {
        ToastUtil.TextToast(this, "获取图片失败", Toast.LENGTH_SHORT, Gravity.CENTER);
        finish();
      }
    } else {
      ToastUtil.TextToast(this, "获取图片失败", Toast.LENGTH_SHORT, Gravity.CENTER);
      finish();
    }
  }