Created
August 15, 2012 16:14
-
-
Save Boztown/3361314 to your computer and use it in GitHub Desktop.
C#: Download image into memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebRequest req = WebRequest.Create(m.Media.ThumbnailUrl); | |
WebResponse response = req.GetResponse(); | |
Stream stream = response.GetResponseStream(); | |
images.Add(Image.FromStream(stream)); | |
stream.Close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment