IsBinary

Description

Returns TRUE if value is binary; otherwise, returns FALSE.

Category

Decision functions

Syntax

IsBinary(value) 

See also

ToBinary, ToBase64, IsNumeric, YesNoFormat

Parameters

Parameter
Description
value
A value

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.
-------------------------------------------------------------------->
<head>
<title>
IsBinary Example
</title>
</head>

<body bgcolor = silver>
<H3>IsBinary Example</H3>

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