Hi, with exposed what data type <https://github.co...
# exposed
f
Hi, with exposed what data type https://github.com/JetBrains/Exposed/wiki/DataTypes should I use for retrieving bytea from postgresql, is the binary type used for this
p
https://github.com/JetBrains/Exposed/blob/master/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/PostgreSQL.kt#L14:L20 Generally the dialect is going to guide you on the intended / available types.In this case, Blob and Binary types are declared for bytea. So your Table objects will want to use
binary
or
blob
for declaration from which your going to get a
Column<ByteArray>
or
Column<ExposedBlob>
respectively.
f
Hey Phil, thanks for your response looks like binary is what I need