// PushBullet 이미지 첨부 메세지용 public void ImageMsgPush(string Token, string Msg, string ImagePath) { try { PushbulletClient Client = new PushbulletClient(Token); var current = Client.CurrentUsersInformation(); using (var fileStream = new FileStream(ImagePath, FileMode.Open, FileAccess.Read, FileShare.Read)) { PushbulletSharp.Models.Requests.PushFileRequest reqeust = new PushbulletSharp.Models.Requests.PushFileRequest { Email = current.Email, FileName = Path.GetFileName(ImagePath), FileType = "image/png", FileStream = fileStream, Body = Msg }; var response = Client.PushFile(reqeust); } } catch (Exception) { MessageBox.Show("ImageMsgPush 함수 오류. 내용을 작성 하세요."); timer1.Stop(); } timer1.Stop(); }