Re: Sending binary directly to the browser?

2003-09-06 Thread Claude Schneegans
>>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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
> -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

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
> -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 &

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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?

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
? 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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
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

RE: Sending binary directly to the browser?

2003-09-05 Thread Mike Townend
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

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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:

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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?

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
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

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
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? &

RE: Sending binary directly to the browser?

2003-09-05 Thread Jim Davis
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

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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 ;-) ~~~

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>>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

RE: Sending binary directly to the browser?

2003-09-05 Thread Andre Mohamed
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

Re: Sending binary directly to the browser?

2003-09-05 Thread Matt Liotta
>>> > #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

RE: Sending binary directly to the browser?

2003-09-05 Thread Douglas.Knudsen
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

Re: Sending binary directly to the browser?

2003-09-05 Thread Claude Schneegans
>> #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

Re: Sending binary directly to the browser?

2003-09-05 Thread Matt Liotta
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