Insert Java byte[] object into an H2 table and then retrieve it again
问题 I'm trying to insert a Java byte[] into an H2 database table and then retrieve it again, but i am not achieving success. According to this page, the BINARY data type maps directly to a byte[]. So my understanding is i can write the byte[] variable directly to the column, but it is resulting in an exception when i try to retrieve it again. Here is a SSCCE that illustrates my problem. What am i doing wrong here? PS: You need to have an H2 database installed to run this code. package coza.modh