Browse Source

fix:文件获取base64

zhongwei
luyie 2 months ago
parent
commit
eefbc42b42
  1. 2
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java

2
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(); throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException();
}); });
try { try {
return FileUtil.getBase64(request.getFilePath()); return FileUtil.getFileBase64(request.getFilePath());
} catch (IOException e) { } catch (IOException e) {
throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException(); throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException();
} }

Loading…
Cancel
Save