I think the problem is that hexadecimal format uses two characters for each packet of data. Think about colors in hex format: #FF003C.... If you just want ABC then it probably suppose to be "ABC0" as AB is the first packet, and CO would be the second packet.
Not sure, just a guess. ...................... Ben Nadel Web Developer Nylon Technology 6 West 14th Street New York, NY 10011 212.691.1134 212.691.3477 fax www.nylontechnology.com "Vote for Pedro" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Cameron Sent: Thursday, December 01, 2005 8:55 AM To: [email protected] Subject: RE: [CFCDev] BinaryDecode issue Yep, I get the same. And similar experience with <cfoutput>#binaryencode(binarydecode('ABCDE','HEX'),'HEX')#</cfoutput> And <cfoutput>#binaryencode(binarydecode('ABCDEFG','HEX'),'HEX')#</cfoutput> Interesting. -- Adam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 01 December 2005 13:32 To: [email protected] Subject: [CFCDev] BinaryDecode issue Can anybody duplicate this problem on CF7? #binaryencode(binarydecode('ABC','HEX'),'HEX')# It should output ABC but it only gives me AB. Binarydecode appears to lose the last character. Jason Cronk ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/11/2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/11/2005 ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
