拆分流程图片展示以及导出出片超链接格式(测试)
This commit is contained in:
+6
-1
@@ -166,7 +166,8 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
try {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(sarFileSplitInfoEO.getAttId());
|
||||
//String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
String readFilePath = filePath + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
//String readFilePath = filePath + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
String readFilePath = "C://Users//syxy//Desktop//新建文件夹//GB 1589-2016 汽车、挂车及汽车列车外廓尺寸、轴荷及质量限值.docx";
|
||||
|
||||
InputStream is = new FileInputStream(readFilePath); //需要将文件路更改为word文档所在路径。
|
||||
XWPFDocument doc = new XWPFDocument(is);
|
||||
@@ -528,6 +529,10 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
}
|
||||
String filepathandname = splitFilePath +"/" + imageName;
|
||||
try {
|
||||
File file2 = new File(filepathandname);
|
||||
if (!file2.exists()) {
|
||||
file2.mkdirs();
|
||||
}
|
||||
FileOutputStream fos = new FileOutputStream(filepathandname);
|
||||
fos.write(bytev);
|
||||
String path = splitFilePath +"/" + imageName;
|
||||
|
||||
Reference in New Issue
Block a user