Skip to content

Commit 7eed7e2

Browse files
author
Thomasr
committed
#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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy