In my program I have to insert a bynary data in my database. To do that, I created in the database a column, called "data", and I set the type of the column to MEDIUMBLOB. I receive the data that I have to store from a serial port, so they are stored in a byte[ ] array. How can I give that array to my database?
I'd try this:
Alternatively, change it to an InputStream (see ByteArrayInputStream) and set data as a stream.