Content-Length: 257732 | pFad | https://github.com/lowcoder-org/lowcoder/commit/7eed7e29033c562466c399ca9ec068e28c24285e

2F #1173: Change return type of BLOB column to base64 string · lowcoder-org/lowcoder@7eed7e2 · GitHub
Skip to content

Commit 7eed7e2

Browse files
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/lowcoder-org/lowcoder/commit/7eed7e29033c562466c399ca9ec068e28c24285e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy