Fixed attachment download issue.

Passing in the array, as opposed to the ArraySegment would cause some
attachments to download incorrectly.  It would add extra bytes into the
attachment (dependent on the size of the remaining bytes of the last
buffered segment as compared to the buffer size)
Merge branch 'jonlipsky-download_attachment_issue'