Commit d8be2e7c authored by Elf's avatar Elf

增加注释,修改文件路径

parent 63dfbc47
...@@ -42,6 +42,7 @@ public class ServerController { ...@@ -42,6 +42,7 @@ public class ServerController {
//完成分散计算 //完成分散计算
fileService.fileComputing(fileSlice); fileService.fileComputing(fileSlice);
System.out.println("image gray sucess");
return "success"; return "success";
} }
......
...@@ -55,7 +55,8 @@ public class FileServiceImpl implements FileService { ...@@ -55,7 +55,8 @@ public class FileServiceImpl implements FileService {
} }
} }
//这里需提供新的文件输出 //这里需提供新的文件输出
ImageIO.write(grayImage, "jpg", new File("/out.jpg")); ImageIO.write(grayImage, "jpg", new File("\\tmp\\statics\\out.jpg"));
System.out.println("download sucess");
return true; return true;
} }
} }
......
...@@ -28,7 +28,7 @@ public class FileSliceTranferController { ...@@ -28,7 +28,7 @@ public class FileSliceTranferController {
} }
Map<Integer, FileSlice> sliceMap = fileSliceMap.get(fileSlice.getFileId()); Map<Integer, FileSlice> sliceMap = fileSliceMap.get(fileSlice.getFileId());
sliceMap.put(fileSlice.getSliceId(), fileSlice); sliceMap.put(fileSlice.getSliceId(), fileSlice);
//todo 增加保存的函数
return "success"; return "success";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment