ここにこのコードがあり、EWSを使用してExchangeServer上にある電子メールメッセージから添付ファイルを取得します
Attachment attachment = message.Attachments.Single(att => att.ContentId == Request.QueryString["cid"]);
attachment.Load();
FileAttachment fileAttachment = attachment as FileAttachment;
fileAttachment.Load();
byte[] bytes = fileAttachment.Content;
Stream theMemStream = new MemoryStream();
theMemStream.Write(bytes, 0, bytes.Length);
return new FileStreamResult( theMemStream, attachment.ContentType);
ファイルは問題なくダウンロードできますが、破損しています...何か足りないものはありますか?