Lowyat.NET Forums

Welcome Guest ( Log In | Register )

LYN wins Intel-Lenovo-Tangs Blogathon challenge. Thank you everybody!
 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> request and save image file (.NET)

hizperion
post Jul 4 2009, 02:08 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Relentless Revolver
*****

Group: Senior Member
Posts: 720
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: United Subang Jaya Expire: Oct 2077






hello everyone

i'm developing a system using C#, MapGuideOS and OpenLayers. in one part of the system, user can submit the current view of the map in OpenLayers to the server.

this is how i load the mapguide maps in openlayers if you're wondering http://openlayers.org/dev/examples/mapguide.html

what i'm trying to do now is requesting the map image from mapguide server using certain parameters. for example
CODE
http://data.mapguide.com/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&mapdefinition=Library%3A%2F%2FSamples%2FSheboygan%2FMaps%2FSheboygan.MapDefinition&operation=GETMAPIMAGE&format=PNG&locale=en&clip=1&version=1.0.0&setdisplaydpi=96&setdisplayheight=600&setdisplaywidth=600&setviewcenterx=-87.725196993746&setviewcentery=43.74934774657&setviewscale=70925.55565259664


how can i do this? is it possible to use something like HttpWebRequest to get the image file and save to the server?
User is online!Profile CardPM
Go to the top of the page
+Quote Post
hizperion
post Jul 4 2009, 02:12 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #2


Relentless Revolver
*****

Group: Senior Member
Posts: 720
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: United Subang Jaya Expire: Oct 2077






add: it will be saved to the server in windows directory as an image file
User is online!Profile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 23rd November 2009 - 07:52 PM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)