Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

I provide conversion methods for common data types in ColdFusion.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tests
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
README.md

DatatypeConverter.cfc - Converts Between Various Data Formats In ColdFusion

by Ben Nadel (www.bennadel.com)

The DatatypeConverter.cfc is a ColdFusion component that provides shorthand functions for converting between common data types. The following conversion methods are provided:

  • base64ToBinary( String base64Value )
  • base64ToHex( String base64Value )
  • base64ToString( String base64Value )
  • binaryToBase64( Any binaryValue )
  • binaryToHex( Any binaryValue )
  • binaryToString( Any binaryValue [, String charset = "utf-8"] )
  • hexToBase64( String hexValue )
  • hexToBinary( String hexValue )
  • hexToString( String hexValue )
  • stringToBase64( String stringValue )
  • stringToBinary( String stringValue [, String charset = "utf-8"] )
  • stringToHex( String stringValue )

Some of these methods are simply more "readable" versions of existing, built-in ColdFusion functions.

Something went wrong with that request. Please try again.