Re: Binary to stdout

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

Irv,

That was the first thing I tried. Because STDOUT
is opened as ascii "w" as opposed to "wb" it
doesn't send the data correctly. Ho-hum...I guess
I'll just have to do things the way I am (or
write a small .so/dll to write binary (is anyone
using a function called "write" may as well use
the 'c' function name.:-p))

later,
Allen

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

---- End Original Message ----


Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu