|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|