Isbinary - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

390

IsBinary

Returns TRUE if value is binary; otherwise, the function returns FALSE.
See also ToBinary, ToBase64,
Syntax
IsBinary( value )
value
Any value.
Examples
<!------------------------------------------------------------------
This example shows the use of IsBinary. It assumes that another page
in a syndication program has passed this page the value of the variable
data_var, which can hold either character data or binary data. This
example checks to see whether data_var is binary, and if it is, it
converts the binary data into Base64 data.
-------------------------------------------------------------------->
<HEAD>
<TITLE>
IsBinary Example
</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<H3>IsBinary Example</H3>
<!------------------------------------------------------------------
Check to see if syndicated data is in binary form, and if it is, convert
it to Base64 so that it can be viewed as printable characters.
--------------------------------------------------------------------->
<CFIF IsBinary(data_var)>
<CFSET Base64data = ToBase64(data_var)
</CFIF>
...
IsNumeric
and YesNoFormat.
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents