Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
imageGetBlob(source)
returns binary
someImage.getBlob()
Name | Type | Required | Default | Description |
---|---|---|---|---|
source | string | Yes | The ColdFusion image on which this operation is performed. |
CF11+ Lucee4.5+ Retrieve the bytes of the underlying image
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
blob = imgObj.getBlob();
writeDump(blob);