try {
if (query.getBlob(1) != null) {
QByteArray data = new QByteArray(query.getBlob(1));
QPixmap img = new QPixmap();
if (img.loadFromData(data)) {
img = img.scaled(Global.largeThumbnailSize);
map.put(query.valueString(0), img);
}
}
} catch (java.lang.IllegalArgumentException e) {
logger.log(logger.HIGH, "Error retrieving thumbnail " +e.getMessage());