Code:
MapView[] views = new MapView[1];
ViewByScale viewByScale = new ViewByScale();
viewByScale.CenterPoint = llCenter;
views[0] = viewByScale;
MapSpecification spec = new MapSpecification();
spec.DataSourceName="MapPoint.NA";
spec.Views=views;
spec.Options=options;
spec.Pushpins=myPushPins;
render = new RenderServiceSoap();
render.Credentials = new System.Net.NetworkCredential(User,Pass);
render.PreAuthenticate=true;
MapImage[] mapImgs;
mapImgs = render.GetMap(spec);
Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImgs[0].MimeData.Bits));
pictureMapPoint.Image=bMap;
The problem is in this line
Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImgs[0].MimeData.Bits));
Thank you.. I already send you the code by mail.