What is the easiest way to convert byte array into Blob data type in MYSQL with java programming language?
Blob blob = connection.createBlob(); blob.setBytes(1, bytes);
Blob fileBlob = new javax.sql.rowset.serial.SerialBlob(byteArray);
You may try this one, if you are using hibernate.. Possibly the easiest way! :)
Blob blob = Hibernate.createBlob(bytes);