below code is for reading image from file path. using (FileStream fileStream = new FileStream(Server.MapPath("~/" + fname), FileMode.Open, FileAccess.Read)) { content = new byte[fileStream.Length]; fileStream.Read(content, 0, content.Length); } fileAttach.Content = content; CreateAttachmentType attachmentRequest = new CreateAttachmentType(); attachmentRequest.Attachments = new AttachmentType[1]; attachmentRequest.Attachments[0] = fileAttach; attachmentRequest.Attachments[0].IsInline = true; attachmentRequest.Attachments[0].ContentId = FileName; attachmentRequest.ParentItemId = emailResponseMessage.Items.Items[0].ItemId;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)