//送信するファイルのパス string filePath = "C:\\Users\\ochi\\Pictures\\snapshot.jpg"; //送信先のURL string url = "http://*********************"; System.Net.WebClient wc = new System.Net.WebClient(); wc.Headers.Add("Content-Type", "image/jpeg"); byte[] resData = wc.UploadFile(url, filePath);これが一番シンプルな方法でしょう。
0 件のコメント:
コメントを投稿