Err.. I think I said ' Short of attempting toBinary() in a try/catch'. Reason being that throwing exceptions are expensive and also an ugly way of programming an evaluation. IMHO..
Brook -----Original Message----- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: April-22-11 8:19 AM To: cf-talk Subject: Re: check for a base64 encoded string Why not just make the "attempting toBinary() in a try/catch" logic into a function? http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172 e0811cbec22c24-7ff3.html On Fri, Apr 22, 2011 at 9:25 AM, Brook Davies <cft...@logiforms.com> wrote: > > Short of attempting toBinary() in a try/catch, does any one know how > to check if a string is base64 encoded? > > > > Brook > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343901 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm