androidGuy androidGuy - 1 year ago 372
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);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download