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 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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user