| | |
| | |
|
| | | import android.graphics.Bitmap;
|
| | |
|
| | | import java.io.ByteArrayOutputStream;
|
| | |
|
| | | import android.net.Uri;
|
| | | import android.util.Base64;
|
| | |
|
| | | public class SurveillanceQueryItem {
|
| | |
|
| | | // 人员主键
|
| | |
| | | private String width;
|
| | |
|
| | | private String height;
|
| | |
|
| | | private Uri localUri;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | |
| | | }
|
| | |
|
| | | public String getBase64Image() {
|
| | | return base64Image;
|
| | | ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
| | | bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
|
| | | byte[] imageBytes = byteArrayOutputStream.toByteArray();
|
| | | String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
|
| | | return encodedImage;
|
| | | }
|
| | |
|
| | | public void setBase64Image(String base64Image) {
|
| | |
| | | public void setStatus(String status) {
|
| | | this.status = status;
|
| | | }
|
| | |
|
| | | public Uri getLocalUri() {
|
| | | return localUri;
|
| | | }
|
| | |
|
| | | public void setLocalUri(Uri localUri) {
|
| | | this.localUri = localUri;
|
| | | }
|
| | | }
|