Both of the following JSTL checks return positive - resulting in the inner message being displayed ("image not null"/"image not empty") - even when the current record does not have an image associated with it.
<c:if test="${rec.imgdata != null}">image not null</c:if>
<c:if test="${not empty rec.imgdata}">image not empty</c:if>
The image is stored as a Blob for each record. What's the correct way to check whether the Blob (rec.imgdata
) is non-empty?