Commit 6a65456f authored by fangxinjiang's avatar fangxinjiang

电子印章代码附件上传到税友-fxj

parent 301c32d8
......@@ -43,11 +43,10 @@ public class ExcelToImage {
sheet.saveToImage(projectRoot+"\\ToImg.png");
File file = null;
try {
// 上传税友文件服务器,返回文件路径
file = new File(projectRoot+"\\ToImg.png");
if (file.exists()){
String key = System.currentTimeMillis() + file.getName();
// TODO - shuiyou
byte[] fileContent = Files.readAllBytes(file.toPath());
String base64String = Base64.getEncoder().encodeToString(fileContent);
String url = socialFriendConfig.uploadPng(restTemplate, key, base64String, backLog);
......
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