SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
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 language:)
This question is related to java mysql bytearray blob
java
mysql
bytearray
blob
The easiest way is this.
byte[] bytes = rs.getBytes("my_field");
Source: Stackoverflow.com