Hi,<br><br>The doc (mapscript.txt) say that write() work only for Python<br><br>write( [ FILE file=NULL ] ) : int<br> Write image data to an open file descriptor or, by default, to *stdout*.<br> Returns MS_SUCCESS or MS_FAILURE.
<br> <br>.. note:: This method is current enabled for Python only. User-contributed<br> typemaps are needed for Perl, Ruby, C#, and Java.<br><br><br>But is there a way around this?<br><br><br>What I'm trying to do is something like this:
<br><br> def do_GET(req, res)<br> map = get_map()<br> img = map.draw()<br> <br> res.status = 200<br> res["Content-Type"] = img.format.mimetype + "\n\n"<br><br> img.write() <br> end
<br><br>But this dump a GIF on the server side !<br><br>Any hint or an example would be great <br><br><br>Thanks,<br><br>Sylvain.<br><br>