[mapserver-users] SVG via memory stream

blackcat18 m18blackcat at hotmail.fr
Wed May 28 07:11:54 PDT 2014


Hi everyone,

I am trying to get an svg image via a memorystream: I used that code (c#):

*            using (System.IO.MemoryStream ms = new
System.IO.MemoryStream(map.draw().getBytes()))
            {
                ........
            }*

and I get this error :

*An exception of type 'System.ApplicationException' occurred in
mapscript_csharp.dll but was not handled in user code

Additional information: getBytes: General error message. Failed to get image
buffer;msSaveImageBuffer(): General error message. Unsupported image type*

I found many times this same error on other posts like :
http://trac.osgeo.org/mapserver/ticket/4145

but I did not find a solution. I would like to take that picture via a
memorystream to display it into a browser. I am programming in a Web Form
(c#).

regards,
mijo



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SVG-via-memory-stream-tp5142936.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list