Weird... there are no "null" characters in the string (I think).

I doubt that zeros are the problem (unless zero converts to null in
Base64) as zero is a value, not null.

One thing however - the string I got was constructed on CF 4.5 - perhaps
you have to create your string in CF 5.0?  Perhaps it's having trouble
decoding across versions?  (It shouldn't have, but maybe it does)

Weird.

Jim Davis

> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 3:53 PM
> To: CF-Talk
> Subject: Re: Sending binary directly to the browser?
> 
> I tried on CF 5.0 and I still get the error:
> 
> An error occurred while evaluating the expression:
>
#ToString(ToBinary("R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAIC
RA
> EAOw=="))#
> Error near line 9, column 23.
> This object cannot be converted to a string (it contains null
characters).
> 
> (I had to comment out the <CFCONTENT tag to see the error message,
> otherwise
> IE protests it "cannot get the page)
> 
> In fact, the toBinary function create the image in gif format, but
since
> it contains zeros, it cannot be converted to a string.
> Or am I missing something else?
> 
> My code is exactly (cut'n pasted from your message):
> <cfsilent>
> <cfsetting showdebugoutput="No" />
> <CFCONTENT TYPE="text/plain">
>
</cfsilent><cfoutput>#ToString(ToBinary("R0lGODlhAQABAIAAAP///wAAACH5BAE
AA
> AAALAAAAAABAAEAAAICRAEAOw=="))#</cfoutput>
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to