I would like to read a Blob of my MySQL database This "Array" BLOB would be placed in a "Gallery".
Code to read BLOB from the database:
while (rs.next()) {
String id = rs.getString("id");
String description = rs.getString("description");
Blob image = (Blob) rs.getBlob("img");
Material m = new Material(id, description,image);
listaMaterial.add(m);
}
Como eu faço para colocar várias BLOB em uma Gallery, qual transformação devo fazer?