MemoryStream ms = new MemoryStream(stream.FileContents); // Create an in-memory System.IO.Stream ContentType ct = new ContentType(stream.ContentType); Attachement a = new Attachment(ms, ct);
stream
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)