Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.

imageGetBlob(source) → returns The bytes of the underlying image of a BLOB.

Member Function Syntax


Argument Reference for the imageGetBlob function


Required: Yes
The ColdFusion image on which this operation is performed.

Examples sample code invoking the imageGetBlob function

Using getBlob() member function

CF 11+ Lucee 4.5+ Retrieve the bytes of the underlying image

imgObj = imageRead("");
blob = imgObj.getBlob();

Fork me on GitHub