C# : Attachment from byte array?
Posted
by JL
on Stack Overflow
See other posts from Stack Overflow
or by JL
Published on 2010-04-06T10:05:13Z
Indexed on
2010/04/06
10:13 UTC
Read the original article
Hit count: 183
c#
I have a byte[] which is a file, and I would like to send it as an attachment using System.Net.Mail.
I noticed the attachment class has 1 overload which accepts a stream.
Attachment att = new Attachment(Stream contentStream,string name);
Is it possible to pass the byte[] through this overload?
© Stack Overflow or respective owner