From: moto AT pfu DOT co DOT jp (Satoru Moto) Newsgroups: comp.os.msdos.djgpp Subject: Binary mode for stdout stream. Date: 21 May 1997 10:15:37 GMT Organization: Research Center , PFU Ltd. Lines: 24 Message-ID: <5lui09$n5t$1@newdc.unoke.pfu.co.jp> NNTP-Posting-Host: niken3.unoke.pfu.co.jp Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Dear Groupmaster, I have a question how to make binary output to stdout stream. Because of, I want to make CGI program for Oreily's Website. I think that CGI Program requires as fillows. CGI must put to stdout stream . CGI can put Image and Text Data. HTML Document : TEXT Gif,JPEG Binary Image. : BINARY However,stdout stream always set for TEXT MODE. In TEXT MODE , Convert newline character. . . . . 0x0a . . . . -> . . . . 0x0d 0x0a . . . . Result of that conversion , Such GIF file is destroied . Thank you for your patient to my little question.