Answer the question
In order to leave comments, you need to log in
How to get images from MSSQL DB in ImageView?
void tableSelectPhoto(ResultSet r)
{
try {
if(r.next()) {
Blob bl = r.getBlob(1);
InputStream inputStream = bl.getBinaryStream();
Image image = new Image(inputStream);
imageView.setImage(image);
}
} catch (SQLException e) {
e.printStackTrace();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question