unable to load email attachment from MemoryStream
<p>Not sure why my email attachment comes out empty everytime. While debugging getAttachment(), the size of the contentDisposition of "att" is -1 while "doc" has 280000 bytes. I am pulling my hair out. What am I missing? </p>

<pre><code>public Attachment getAttachment(BareBonesDoc doc, string name)
{
    MemoryStream mem = new MemoryStream(doc.DocumentFile);
    Attachment att = new Attachment(mem, doc.ContentType);
    switch (doc.ContentType)
    {
        case "application/pdf":
            name += ".pdf";
            break;
        case "application/vnd.ms-excel":
            name += ".xls";
            break;
        case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
            name += ".docx";
            break;
        case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
            name += ".xlsx";
            break;
        case "application/msword":
            name += ".doc";
            break;
        default:
            throw new Exception("The " + name + " file is an unsupported content type.");
    }
    att.Name = name;
    return att;
}
public BareBonesDoc getAwardAgreementAsBareBonesDoc(int termID, int grantAppID, string studentName)
{
    AwardAgreementReport thisReport = new AwardAgreementReport();
    thisReport.ReportParameters["termID"].Value = termID;
    thisReport.ReportParameters["grantAppID"].Value = grantAppID;
    thisReport.ReportParameters["studentName"].Value = studentName;
    return getReportAsPdfBareBonesDoc(getReportAsPdfByteArray((Telerik.Reporting.Report)thisReport));
}
</code></pre>
