Class BlobImageResource

  • All Implemented Interfaces:
    Serializable, IResource, IClusterable

    public abstract class BlobImageResource
    extends DynamicImageResource
    An ImageResource subclass for dynamic images that come from database BLOB fields. Subclasses override getBlob() to provide the image data to send back to the user. A given subclass may decide how to produce this data and whether/how to buffer it.
    Author:
    Eelco Hillenius
    See Also:
    Serialized Form
    • Method Detail

      • getBlob

        protected abstract Blob getBlob​(IResource.Attributes attributes)
        Gets the BLOB (Binary Large OBject) that holds the raw image data.
        Parameters:
        attributes - the current web attributes (request, response, parameters)
        Returns:
        the BLOB