xuxiuxi
2017-06-21 2d260689927acac6d67280993689c2cb6149a40b
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
@@ -49,6 +49,18 @@
   private Date createTime;
    public static long initialSelectId = 1;
    private long idForSelect;
    public SurveillanceQueryItem() {
        if (initialSelectId > 10000) {
            initialSelectId = 1;
        }
        idForSelect = initialSelectId;
        initialSelectId++;
    }
   /**
    * Get 人员主键
    */
@@ -189,11 +201,12 @@
    }
    public String getBase64Image() {
      ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
      bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
      byte[] imageBytes = byteArrayOutputStream.toByteArray();
      String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
        return encodedImage;
//      ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
//      bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
//      byte[] imageBytes = byteArrayOutputStream.toByteArray();
//      String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
//        return encodedImage;
      return "";
    }
    public void setBase64Image(String base64Image) {
@@ -240,4 +253,12 @@
      this.createTime = createTime;
   }
    public long getIdForSelect() {
        return idForSelect;
    }
    public void setIdForSelect(long idForSelect) {
        this.idForSelect = idForSelect;
    }
}