What's the correct way to insert a blob in a database? I've tried some I found on the web but didn't work. Could someone give me an example? I should use blob or byte? I intend to insert a String in a BLOB SUBTYPE 1 field.
The easiest way to write a BLOB (Binary large object) is to use the setBytes().
I would advoid creating an actual java.sql.Blob object - there is no real point.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.