>>This IS unlikely to be the case, but it just may be!
Ok, but since I don't have the original one pixel image, I cannot run the test from
begining under CF 5.
What I can do however, is read another image, Base64-it, and re-binarize it, and see.
I did it, and I still get an error when outputing t
> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 10:56 PM
> To: CF-Talk
> Subject: Re: Sending binary directly to the browser?
>
> >>I meant that the original string was
> encoded using CF 4.5
>>I meant that the original string was
encoded using CF 4.5 - and can be decoded properly. Perhaps if you
encoded the file using 5.0 it would eliminate the problems decoding?
Well, I'll try, but I doubt it makes any difference.
Base64 is not some internal format proper to CF that may change from
> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 7:07 PM
> To: CF-Talk
> Subject: Re: Sending binary directly to the browser?
>
> >>I doubt that zeros are the problem (unless zero converts to null in
&
>>Instead of the cfsilent why not just reset whats being outputted...
Why not indeed. It works also, even simpler.
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?
>>I doubt that zeros are the problem (unless zero converts to null in
Base64) as zero is a value, not null.
No, there are no zeros in base64, since the purpose is to represent any 8 bit value
within 6 bits regular character.
BUT, when going back to binary, then you will find zeros again.
Thus ToB
om: Mike Townend [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 5:27 PM
> To: CF-Talk
> Subject: RE: Sending binary directly to the browser?
>
> Instead of the cfsilent why not just reset whats being outputted...
>
>
> variable="gifFile"&g
? 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: Sen
Honestly I don't know I've only tested on 4.5 and MX.
Now I've gotta go and do some work on this. ;^)
Jim Davis
> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 4:25 PM
> To: CF-Talk
> Subjec
Instead of the cfsilent why not just reset whats being outputted...
#gifFile#
HTH
Mikey
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Friday, September 5, 2003 22:13
To: CF-Talk
Subject: Re: Sending binary directly to the browser?
>>Chr
>>Christian Cantrell blogged an example of doing this here:
Actually, after lots of reading and testing, I came to the conclusion that all this is
complicated for nothing.
This simple code works fine under CF 6:
#gifFile#
The CFSILENT seems to be necessary, but
is not
This also works:
>>I tried on CF 5.0 and I still get the error:
... and I tried it under CFM 6 on the same computer, and it works!...
If somebody got it working under CF 5.0, I'd like to know how?
May be it works under CF 4.5 and 6 but is bugged on version 5?
I tried on CF 5.0 and I still get the error:
An error occurred while evaluating the expression:
#ToString(ToBinary("R0lGODlhAQABAIAAAP///wAAACH5BAEALAABAAEAAAICRAEAOw=="))#
Error near line 9, column 23.
This object cannot be converted to a string (it contains null characters).
(I had to c
Just as a note - the solution I just posted works in 4.5 and above.
Jim Davis
> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 12:47 PM
> To: CF-Talk
> Subject: Re: Sending binary directly to the browser?
&
Liotta [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 10:44 AM
> To: CF-Talk
> Subject: Re: Sending binary directly to the browser?
>
> The below should do the trick for you.
>
>
> #gifdatahere#
>
> Matt Liotta
> President & CEO
> Montar
>>Christian Cantrell blogged an example of doing this here:
Yeah, this is exactly what I was looking for, thanks a lot.
I guess this will only work with CFMX, but at least I'll have a more efficient
solution for generations to come ;-)
~~~
>>tried delivering the gif via cfcontent directly???
Sure, it works, I have the CF_ tag to write the file, then CFCONTENT sends the file,
but this means the file
must be written then read again for nothing. The overhead is significant.
What I want is return the gif image directly to the browser
hives/002658.cfm
André
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: 05 September 2003 16:04
To: CF-Talk
Subject: Re: Sending binary directly to the browser?
>>
#gifdatahere#
I've tried, but it does not work.
If gifdatahere contains binary, CFCONTENT
>>>
> #gifdatahere#
>
> I've tried, but it does not work.
> If gifdatahere contains binary, CFCONTENT complains it can accept only
> a string,
> if it is a string, the string is truncated to the first zero byte.
>
You aren't supposed to put the binary data in the cfcontent tag. If you
look at th
tried delivering the gif via cfcontent directly???
Doug
>-Original Message-
>From: Claude Schneegans [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 05, 2003 11:04 AM
>To: CF-Talk
>Subject: Re: Sending binary directly to the browser?
>
>
>>>
>#gifdat
>>
#gifdatahere#
I've tried, but it does not work.
If gifdatahere contains binary, CFCONTENT complains it can accept only a string,
if it is a string, the string is truncated to the first zero byte.
~|
Archives: http://www.houseo
The below should do the trick for you.
#gifdatahere#
Matt Liotta
President & CEO
Montara Software, Inc.
http://www.MontaraSoftware.com
(888) 408-0900 x901
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscripti
22 matches
Mail list logo