We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3e6ce commit 2ef2baaCopy full SHA for 2ef2baa
server/odc-service/src/main/java/com/oceanbase/odc/service/connection/ConnectionService.java
@@ -893,8 +893,8 @@ public BinaryDataResult getBatchImportTemplateFile() throws IOException {
893
if (input == null) {
894
throw new UnexpectedException(DATASOURCE_TEMPLATE_FILE_NAME + " is not found");
895
}
896
- byte[] buffer = new byte[input.available()];
897
- IOUtils.read(input, buffer);
+ log.info("input.available(): " + input.available());
+ byte[] buffer = IOUtils.toByteArray(input);
898
return new ByteArrayDataResult(DATASOURCE_TEMPLATE_FILE_NAME, buffer);
899
900
0 commit comments