what is the easiest way to convert a Blob into a byte array?I am using MYSQL and i want to convert a Blob datatype into a byte array.
Iam using java programming lang
The easiest way is this.
byte[] bytes = rs.getBytes("my_field");