androidGuy androidGuy - 1 year ago 297
Java Question

Easiest way to convert byte array into Blob in java

What is the easiest way to convert byte array into Blob data type in MYSQL with java programming language?

Answer Source
Blob blob = connection.createBlob();
blob.setBytes(1, bytes);