Re: CGI OUTPUT
- Posted by xerox_irs at lvcm.com Mar 16, 2003
- 525 views
i just used "kernel32.dll" "WriteFile", and "ReadFile" and they work fine for jpegs and binary without any mods, i dont even need to use "setmode" thanks for the help!!!! ----- Original Message ----- From: <xerox_irs at lvcm.com> Subject: Re: CGI OUTPUT > > ok i used "_setmode" in "msvcrt.dll" to set the mode to binary and it no > longer changes all of the line breaks to cr/ln but it still doesn't like me > to output zeros, and i was wondering if somewhere in the "puts" procedure > when the file number is 0,1, or 2 that it messes around with the zeros in > euphoria? > > ----- Original Message ----- > From: Robert Craig <rds at RapidEuphoria.com> > To: <EUforum at topica.com> > Sent: Thursday, March 13, 2003 5:49 PM > Subject: RE: CGI OUTPUT > > > > xerox_irs at lvcm.com wrote: > > > i need to know how to puts to the console in binary mode, > > > and how to getc(0) for it in binary mode. > > > > I think most C compilers for DOS/Windows > > have a routine called setmode() that lets you > > switch standard output or input into binary mode. > > Maybe I'll add a machine_proc() routine or something > > to do that, but isn't there a way of outputting > > a .jpg from CGI using some encoding like BASE64 > > where binary/text mode wouldn't matter? > > > > If you're in a hurry, maybe you can call setmode() > > or equivalent via a .dll, or maybe insert a call into the > > Translator's output C code, in the main routine. > > > > This DOS/Windows concept of binary vs. text mode > > is really lame, and has cost billions of dollars > > in lost productivity for no good reason! > > > > Regards, > > Rob Craig > > Rapid Deployment Software > > http://www.RapidEuphoria.com > > > > > > TOPICA - Start your own email discussion group. FREE! > > > > > > TOPICA - Start your own email discussion group. FREE! >