[Mapserver-users] Sending image to stdout under Apache

Jason Thaxter jason at gomoos.org
Wed Mar 5 14:11:44 EST 2003


Ah, now we're getting somewhere...

On Wed, Mar 05, 2003 at 11:59:46AM -0500, Lowell Filak wrote:
> Doh!
> That's what I get for being in a hurry.
> >From what I've read:
> 1) You don't need binmode on *n*x.

this is true.

> 2) You need to print to OUT as opposed to STDOUT or the content is shipped before the content-type.
> print OUT $ref_img->saveImage(undef, $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0);

hmm, this is sort of puzzling.  i seem to be getting unpredictable behavior,
depending on the client.  i'm making myself a little dizzy here playing with
variations of OUT vs STDOUT - could you give me some reference on this? I've
never heard of OUT before!!! - and various autoflush invocations.  but i have
managed to get an out-of-order result with curl while getting a single '0' via
telnetting and pasting in the curl request... very weird indeed!

> HTH

it's a good start!

> Lowell F.
> 

-- 
----------------------------------------------
Jason Thaxter
GoMOOS, P.O. Box 4919, Portland, ME 04112-4919
Office Location: 1 Canal Plaza, 7th Floor
Office: 207.773.0423
Fax:    207.773.8672
Email:  thaxter at gomoos.org
------------www.gomoos.org--------------------



More information about the mapserver-users mailing list