View comments | RSS feed

IsBinary

Description

Determines whether a value is stored as binary data.

Return value

True, if the value is binary; False, otherwise. Returns the value in Base64 format.

Category

Decision functions

Syntax

IsBinary(value)

See also

ToBinary, ToBase64, IsNumeric, YesNoFormat

Parameters

Parameter Description
value
Number or string

Example

<!--- This example shows the use of IsBinary. It assumes that another page in a
syndication program passed this page the value of the variable data_var,
which can hold character or binary data. This example checks whether
data_var is binary; if so, it converts the data to Base64 data. --->
<h3>IsBinary Example</h3>

<!--- Check whether syndicated data is in binary form. If so, convert to Base64
so it can be viewed as printable characters. --->
<cfif IsBinary(data_var)>
  <cfset Base64data = ToBase64(data_var)
</cfif>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


a440guy said on Feb 6, 2003 at 6:36 PM :
The text under the section heading "Return Value" is nonsense. First, it says that the return value is "true" or "false", then it says that it returns "the value" base64 encoded.

Also, the entire page suffers from the same problems as all of the ColdFusion documentation: the information is often not specific or complete enough to actually use it.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1125.htm