string fileName = string.Empty; using (var dlg = new OpenFileDialog()) { dlg.Filter = "All Files|*.*"; if (dlg.ShowDialog(this) == DialogResult.OK) { fileName = dlg.FileName; } } string url = string.Format(@"https://apis.live.net/v5.0/me/skydrive/Files/Isync/{0}?access_token={1}", Path.GetFileName(fileName), access_token); using (var client = new WebClient()) { client.UploadDataAsync(new Uri(url), "PUT", ImageToByteArray(fileName)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)