public void SendExcelToLineNotify(string filePath, string accessToken)
using (var httpClient = new HttpClient())
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
using (var content = new MultipartFormDataContent())
content.Add(new StreamContent(fileStream), "imageFile", Path.GetFileName(filePath));
var response = httpClient.PostAsync(LineNotifyApiUrl, content).Result;
var responseContent = response.Content.ReadAsStringAsync().Result;
Console.WriteLine(responseContent);
MessageBox.Show(responseContent);