Quantcast
Channel: Loading Image from "google maps static map" URL
Viewing all articles
Browse latest Browse all 8

Loading Image from "google maps static map" URL

$
0
0

Hi Jose,

 

you can also save the image file on the device.

 

 

Code Snippet

HttpWebRequest

httpRequest = (HttpWebRequest)HttpWebRequest.Create(WebUrl);

httpRequest.Timeout = 15000;

httpRequest.ReadWriteTimeout = 20000;

HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();

Stream imageStream = httpResponse.GetResponseStream();

System.Drawing.

Bitmap buddyIcon = new System.Drawing.Bitmap(imageStream);

httpResponse.Close();

imageStream.Close();

buddyIcon.Save(PATH+FileName, System.Drawing.Imaging.

ImageFormat.Jpeg);

 

 

 


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>