MapServer / MapServer-import

3 stars 2 forks source link

FILE * typemaps for Perl, C#, Java #1064

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: sgillies@frii.com Date: 2004/11/13 - 21:16

imageObj::write() is awaiting some Perl, Java, and C# users to
contribute typemaps that will convert your favorite language's
file descriptors to C FILE*.  I'm going to be too busy before the
release to do this for every language, so am counting on some people
to step up to the plate.

The write() method dumps an image to an open filehandle.  Default 
would be stdout, and I think this default will probably work even in
the absence of a typemap.  Would let you do this

    print "Content-type: " + image.format.mimetype + "\n\n"
    image.write()

to send imagery to a web browser.  If you want to save imagery to
a scalar or pipe it to ImageMagick or whatever, you'll need a typemap.

Anyone willing to write, test, and submit this before the release?
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2005/02/21 - 19:19

closing this as we are going with a getBytes method now.