# isBinary

 Determines whether a value is stored as binary data.




### Syntax

```
isBinary(value) returns boolean
```






## Argument Reference

| Name | Type | Required | Default | Description | Values |
| --- | --- | --- | --- | --- | --- |
| value | any | Yes |  |  |  |





## CFML Engine Support

The isBinary function is supported on the following CFML engines:

| Engine | Minimum Version | Notes |
| --- | --- | --- |
| ColdFusion | 4.5 |  |
| Lucee |  |  |
| BoxLang | 1.0.0 |  |




## Examples


### Checks if toBase64() function returns binary data 

toBase64() returns base64 encoded data which is not binary

```
isBinary( toBase64(1) )
```
Expected Result: false


### Checks if toBinary() function returns binary data 

toBinary() expects base64 encoded data and returns binary data

```
isBinary( toBinary(toBase64(1)) )
```
Expected Result: true





## Related Tags and Functions

[toBase64](https://cfdocs.org/toBase64.md)
[toBinary](https://cfdocs.org/toBinary.md)
[spreadsheetReadBinary](https://cfdocs.org/spreadsheetReadBinary.md)
[fileReadBinary](https://cfdocs.org/fileReadBinary.md)




The human version of this document can be found here: [https://cfdocs.org/isbinary](https://cfdocs.org/isbinary) which is part of the cfdocs.org repository. Project created by [Pete Freitag](https://www.petefreitag.com) and sponsored by [Foundeo Inc.](https://foundeo.com/)
