How do I convert the byte[] array to Blob in Java?
There is a way to get Blob with getByte()
, but the reverse is not.
Connection#createBlob()
to create objects generated using the setBytes
methodI think I can.
See also the reference for your JDBC driver.
I wonder if I can refer to this area. The example is binaryStram, but also from Byte array
Can't I do it in a similar way?
https://docs.oracle.com/javase/jp/8/docs/api/java/sql/Blob.html
© 2024 OneMinuteCode. All rights reserved.