One important thing to note, Before #8 make sure make sure you set the first stream to position = 0. This is clear in the attached code, but not in the text above… If you don't your attachment will be sized right, but empty.
stream.Position = 0; // Star the stream at position 0