Bug: Fix the bug that frontend requests image before the image is ready

This commit is contained in:
Bingkun Li 2026-02-03 13:13:31 +08:00
parent 29c0e0c29d
commit ec5eb9a075

View File

@ -30,7 +30,7 @@ public class SarWsAsyncService {
* @param datName
* @param fileData
*/
@Async("commonThreadPool")
// @Async("commonThreadPool")
public void saveImageDat(Object dirName, String datName, byte[] fileData) {
String imageSrcPath = sysFileTypeService.getAbsolutePath(FileTypeEnum.SAR_IMAGE_LOW_SRC, dirName, datName);
FileUtil.createDir(imageSrcPath);
@ -48,7 +48,7 @@ public class SarWsAsyncService {
* @param image 图像像素
* @param release 是否释放参数 image 资源
*/
@Async("commonThreadPool")
// @Async("commonThreadPool")
public void write(String imagePath, Mat image, boolean release) {
OpenCVUtil.write(imagePath, image, true);
}