Bug: Fix the bug that frontend requests image before the image is ready
This commit is contained in:
parent
29c0e0c29d
commit
ec5eb9a075
@ -30,7 +30,7 @@ public class SarWsAsyncService {
|
|||||||
* @param datName
|
* @param datName
|
||||||
* @param fileData
|
* @param fileData
|
||||||
*/
|
*/
|
||||||
@Async("commonThreadPool")
|
// @Async("commonThreadPool")
|
||||||
public void saveImageDat(Object dirName, String datName, byte[] fileData) {
|
public void saveImageDat(Object dirName, String datName, byte[] fileData) {
|
||||||
String imageSrcPath = sysFileTypeService.getAbsolutePath(FileTypeEnum.SAR_IMAGE_LOW_SRC, dirName, datName);
|
String imageSrcPath = sysFileTypeService.getAbsolutePath(FileTypeEnum.SAR_IMAGE_LOW_SRC, dirName, datName);
|
||||||
FileUtil.createDir(imageSrcPath);
|
FileUtil.createDir(imageSrcPath);
|
||||||
@ -48,7 +48,7 @@ public class SarWsAsyncService {
|
|||||||
* @param image 图像像素
|
* @param image 图像像素
|
||||||
* @param release 是否释放参数 image 资源
|
* @param release 是否释放参数 image 资源
|
||||||
*/
|
*/
|
||||||
@Async("commonThreadPool")
|
// @Async("commonThreadPool")
|
||||||
public void write(String imagePath, Mat image, boolean release) {
|
public void write(String imagePath, Mat image, boolean release) {
|
||||||
OpenCVUtil.write(imagePath, image, true);
|
OpenCVUtil.write(imagePath, image, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user