Bitmap img = new Bitmap(Server.MapPath("~/img/test.jpg")); MemoryStream ms = new MemoryStream(); img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); ms.Seek(0, SeekOrigin.Begin); Dictionary<string, Stream> images = new Dictionary<string, Stream> { { "mypicture", ms } }; var result = service.SendTweetWithMedia(new SendTweetWithMediaOptions { Status = "this is my second tweet", Images = images });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)