• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

toBinary() no longer functions in CF 8

Community Beginner ,
Nov 19, 2007 Nov 19, 2007

Copy link to clipboard

Copied

Script worked fine in CFMX 7, but non-functional in CF 8 -- Base64 data is returned from toBinary() in same format as received... but verified as correct. When accessed from CFMX 7, it decodes properly.

TOPICS
Advanced techniques

Views

233

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 19, 2007 Nov 19, 2007

Copy link to clipboard

Copied

LATEST
Not an answer, but a weird finding....

I can make it extract data in the proper format by chaning a simple toBinary(data) to:

toBinary(toString(toBinary(data)))

This seems like a hack to get around a false positive for binary data in the original (since toBinary returns the original value when it detects binary data).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation