|
@@ -66,15 +66,15 @@ public class CameraCaptureService {
|
|
|
byteArrayOutputStream.write(bytes,0,index);
|
|
|
}
|
|
|
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
|
|
|
- String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
|
|
|
- if (log.isDebugEnabled()) {
|
|
|
- log.debug("生成至服务器本地开始,路径为======" + uploadUrl);
|
|
|
- }
|
|
|
- IOUtils.copy(byteArrayInputStream, new FileOutputStream(uploadUrl));
|
|
|
- if (log.isDebugEnabled()) {
|
|
|
- log.debug("生成至服务器本地结束,路径为======");
|
|
|
- }
|
|
|
- byteArrayInputStream.reset();
|
|
|
+// String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
|
|
|
+// if (log.isDebugEnabled()) {
|
|
|
+// log.debug("生成至服务器本地开始,路径为======" + uploadUrl);
|
|
|
+// }
|
|
|
+// IOUtils.copy(byteArrayInputStream, new FileOutputStream(uploadUrl));
|
|
|
+// if (log.isDebugEnabled()) {
|
|
|
+// log.debug("生成至服务器本地结束,路径为======");
|
|
|
+// }
|
|
|
+// byteArrayInputStream.reset();
|
|
|
if (log.isDebugEnabled()) {
|
|
|
log.debug("getCapture======" + fileName);
|
|
|
}
|