You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the response!
Do you need Blob for some framework?
However method com.clickhouse.jdbc.ResultSetImpl#getBytes(int) or com.clickhouse.jdbc.ResultSetImpl#getBinaryStream(int) is more straightforward option because has less wrapping classes. I assume there is a column of String type that you want to retrieve.
ResultSetImpl#getBytes throws "Column is not of array type"
ResultSetImpl#getBinaryStream returns "BinaryStream is not yet supported" (v0.9.1)
This will be fixed in 0.9.3 (should be ready by end of this month). Here is the issue for that #2263
I tried to use jooq, but in the end fall back to native java
Jooq as I know is built on top of JDBC and it just adds extra layer of abstractions.
We always recommend using clickhouse-java until JDBC is the requirement.
Activity
chernser commentedon Sep 2, 2025
Good day, @AndrewRazumovskiy !
Thank you for your suggestion!
Would you please describe your use-case?
Thanks!
AndrewRazumovskiy commentedon Sep 3, 2025
I store raw binary files in CH (png, pdf, txt, excel), and I want to download them as is, in binary mode
chernser commentedon Sep 3, 2025
@AndrewRazumovskiy
Thank you for the response!
Do you need
Blobfor some framework?However method
com.clickhouse.jdbc.ResultSetImpl#getBytes(int)orcom.clickhouse.jdbc.ResultSetImpl#getBinaryStream(int)is more straightforward option because has less wrapping classes. I assume there is a column ofStringtype that you want to retrieve.AndrewRazumovskiy commentedon Sep 3, 2025
ResultSetImpl#getBytes throws "Column is not of array type"
ResultSetImpl#getBinaryStream returns "BinaryStream is not yet supported" (v0.9.1)
AndrewRazumovskiy commentedon Sep 3, 2025
I tried to use jooq, but in the end fall back to native java
chernser commentedon Sep 3, 2025