From eefbc42b425716b76c3fab1f42b4cacb67a0d454 Mon Sep 17 00:00:00 2001 From: luyie Date: Tue, 8 Oct 2024 10:22:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=87=E4=BB=B6=E8=8E=B7=E5=8F=96base64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java index 1b6c95f..61cf98f 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java @@ -105,7 +105,7 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException(); }); try { - return FileUtil.getBase64(request.getFilePath()); + return FileUtil.getFileBase64(request.getFilePath()); } catch (IOException e) { throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException(); }