|
@@ -27,7 +27,7 @@ public class CameraCaptureService {
|
|
|
MinioUtils minioUtils;
|
|
|
|
|
|
|
|
|
- private final static Integer CONST_TIME_OUT = 30 * 1000;
|
|
|
+ private final static Integer CONST_TIME_OUT = 60 * 1000;
|
|
|
|
|
|
public boolean getCapture(URL url, String fileName) throws IOException {
|
|
|
return getCapture(url, "", fileName);
|
|
@@ -76,17 +76,17 @@ public class CameraCaptureService {
|
|
|
byteArrayOutputStream.write(bytes,0,index);
|
|
|
}
|
|
|
byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
|
|
|
- String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
|
|
|
+ //String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
|
|
|
// String uploadUrl = "d://tmp/c/"+ (cameraCode + "-" + (System.currentTimeMillis() / 1000)) +".jpeg";
|
|
|
// if (log.isDebugEnabled()) {
|
|
|
// log.debug("生成至服务器本地开始,路径为: " + uploadUrl);
|
|
|
// }
|
|
|
- fileOutputStream = new FileOutputStream(uploadUrl);
|
|
|
- IOUtils.copy(byteArrayInputStream, fileOutputStream);
|
|
|
+ //fileOutputStream = new FileOutputStream(uploadUrl);
|
|
|
+ //IOUtils.copy(byteArrayInputStream, fileOutputStream);
|
|
|
// if (log.isDebugEnabled()) {
|
|
|
// log.debug("生成至服务器本地结束,路径为: " + uploadUrl);
|
|
|
// }
|
|
|
- byteArrayInputStream.reset();
|
|
|
+ //byteArrayInputStream.reset();
|
|
|
// if (log.isDebugEnabled()) {
|
|
|
// log.debug("getCapture======" + fileName);
|
|
|
// }
|