How to dump directly to the web browser

Jose Luis Gonzalez joseluismapserver at YAHOO.ES
Mon Dec 13 06:13:57 EST 2004


Hello to everyone

I am using Mapserver 4.4 and java (servlets), and I have used the example that the instalation program gives me. I't this one:

                mapObj map = new mapObj("test_nofontset.map");
                map.getImagecolor().setRGB(153, 153, 204);
                styleObj st = map.getLayer(1).getClass(0).getStyle(0);
                st.getColor().setHex("#000000");
                imageObj img = map.draw();
                System.out.println("The map will be drawn to: result5.png");
                img.save("result5.png", map);

But what I want to do is to draw directly to the web browser, not to save the file.

Could someone tell me how to do it?

Thank you

Jose Luis


---------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041213/60c3059a/attachment.html


More information about the mapserver-users mailing list