Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Displaying Twitter profile picture with tweet

$
0
0
Trying to figure out how to display the tweet creators profile image with out actually downloading a .jpg

currently have it like this
            WebClient wc = new WebClient();
            byte[] bytes = wc.DownloadData(tweet.Creator.DownloadProfileImage(token));
            MemoryStream ms = new MemoryStream(bytes);
            System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
            uc.UserPicture = img;
But when it runs it gets the picture fine, but it saves it in the current directory.
Any way to display without downloading

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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