|
@@ -488,19 +488,16 @@ public class FileUtils {
|
|
page = page + "-" + cursor + ".pdf";
|
|
page = page + "-" + cursor + ".pdf";
|
|
String fileName = fileNameWithoutExtension + "-" + page;
|
|
String fileName = fileNameWithoutExtension + "-" + page;
|
|
String filePath = localPath + fileName;
|
|
String filePath = localPath + fileName;
|
|
|
|
+ fos = new FileOutputStream(filePath);
|
|
|
|
+ fos.write(out.toByteArray()); // 将数据写入到指定文件路径中
|
|
|
|
+ fos.close();
|
|
if (newIOSSClient!= null ) {
|
|
if (newIOSSClient!= null ) {
|
|
-
|
|
|
|
- fos = new FileOutputStream(filePath);
|
|
|
|
- fos.write(out.toByteArray()); // 将数据写入到指定文件路径中
|
|
|
|
- fos.close();
|
|
|
|
//BladeFile bladeFile = newIOSSClient.updateFile(out.toByteArray(),fileName);
|
|
//BladeFile bladeFile = newIOSSClient.updateFile(out.toByteArray(),fileName);
|
|
-
|
|
|
|
BladeFile bladeFile = newIOSSClient.uploadFile(fileName,filePath,OssConstant.ARCHIVE_DIRECTORY,projectId);
|
|
BladeFile bladeFile = newIOSSClient.uploadFile(fileName,filePath,OssConstant.ARCHIVE_DIRECTORY,projectId);
|
|
result.add(bladeFile.getLink());
|
|
result.add(bladeFile.getLink());
|
|
|
|
+// File f = new File(filePath);
|
|
|
|
+// f.deleteOnExit();
|
|
}else {
|
|
}else {
|
|
- fos = new FileOutputStream(filePath);
|
|
|
|
- fos.write(out.toByteArray()); // 将数据写入到指定文件路径中
|
|
|
|
- fos.close();
|
|
|
|
result.add(filePath);
|
|
result.add(filePath);
|
|
}
|
|
}
|
|
|
|
|