Re: Binary to stdout

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 10 Aug 2000, E.Allen Soard wrote:
> Bernie,
>
> Just tried it, good idea but browsers don't
> understand it. What i'm actually trying to do is
> code a counter in euphoria.  I got it working
> using Jeff Fielding's Pipe library and just
> kicking the output through 'cat' but that seems
> clumsy to me and I was just wondering if there
> was another way.

You can send an image to a browser, via STDOUT, if it has the proper mime
content headers to identify itself to the browser.
Without looking it up, I think it goes something like:

puts(1,"Content-type:  image/gif\n\n") -- must have two linefeeds.

change the gif to jpeg, if appropriate.

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu