hsqldb - How to insert a hex string to a longvarbinary column in hsql? -




how make work in hsql insert script? image column datatype longvarbinary.

insert item (id, image) values (1, '0xffd8ffe000104a464'); 

the binary literal format in sql language has x prefix outside quoted string.

note string must have number of characters. example work if add 1 character make string length even.

insert item (id, image) values (1, x'ffd8ffe000104a4640'); 

see http://www.hsqldb.org/doc/guide/dataaccess-chapt.html#dac_literals





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -