c# email object to stream to attachment
问题 I'm trying to create and send an email attachment from an object which is a list of lists. I found a nicely documented answer here, but still have some confusion. It mentions "get some binary data" //Get some binary data byte[] data = GetData(); I have tested my data by: Console.WriteLine(ieLog.FirstName + "." + ieLog.LastName); I guess my question is how do I turn that into a stream if it isn't already one and then use: //save the data to a memory stream MemoryStream ms = new MemoryStream