www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/03:48:20

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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

            

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019