Stream as Attachment
Brought to you by:
sheda0
Stream stream = streams[i]; // stream.Position != 0 !!!
SmtpAttachment attach = new SmtpAttachment
(stream, fileName); // pending
If stream.Position = stream.Length then infinite loop
while(rdlen < totlen)
{
len =
inputStream.Read(bin, 0, (int)inputStream.Length);
encStream.Write(bin, 0, len);
//inputBlock size(3)
rdlen =
(rdlen + ((len / transformer.InputBlockSize) *
transformer.OutputBlockSize));
}
Logged In: YES
user_id=1068867
stream.Position should be set to 0 before the loop. I ran into
this the other day using a MemoryStream.