androidGuy androidGuy - 1 year ago 257
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
Blob blob = connection.createBlob();
blob.setBytes(1, bytes);