Skip to content

Commit 7eed7e2

Browse files
committedFeb 10, 2025·
#1173: Change return type of BLOB column to base64 string
1 parent 48bb024 commit 7eed7e2

File tree

1 file changed

+1
-1
lines changed
  • server/api-service/lowcoder-sdk/src/main/java/org/lowcoder/sdk/plugin/common/sql

1 file changed

+1
-1
lines changed
 

‎server/api-service/lowcoder-sdk/src/main/java/org/lowcoder/sdk/plugin/common/sql/ResultSetParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static Object getValue(ResultSet resultSet, int i, String typeName) thro
8181
//Convert binary data into base64
8282
Blob blob = resultSet.getBlob(i);
8383
byte[] blobBytes = blob.getBytes(1, (int) blob.length());
84-
return Map.of("type", "BLOB", "length", blobBytes.length, "content", Base64.encodeBase64String(blobBytes));
84+
return Base64.encodeBase64String(blobBytes);
8585
}
8686
return resultSet.getObject(i);
8787
}

0 commit comments

Comments
 (0)
Please sign in to comment.