Determines whether a variable returns a ColdFusion image.
True, if the value is a ColdFusion image; False, otherwise.
IsImage(name
)
cfimage, ImageGetBlob, ImageInfo, ImageNew
ColdFusion 8: Added this function.
Parameter |
Description |
---|---|
name |
Required. The ColdFusion variable that is checked. |
Use this function to determine whether a variable returns a ColdFusion image.
<cfif IsImageFile("images/#form.art#")> <cfset myImage=ImageNew("images/#form.art#")> ... <cfset IsImage("#myImage#")> <cfimage action="writeToBrowser" source="#myImage#"> </cfif>