Ok, I figured out myself how to do it. I can use
Mail.AddAttachment(FileName, MyStream.ToArray)
I was confused because the documentation says that FileName must be "a full file name" which I understood as full path. But it works by just providing a file name to be shown in the mail.