Hello
I have a little problem with the attachment.ContentStream
I’ve tested it with a .txt-File.
The content of the txt-File is for example "Hello World"
and when i read the attachment.ContentStream with a StreamReader, it shows me “HelloWorldHello World” so it doubles the content. Maybe i’m doing something wrong.
I’m using the latest version of aspose.email
Here is the code that I use
greetz drew
foreach (Attachment attachment in message.Attachments)
{
attachmentName[counter] = attachment.Name;
contentType[counter] = attachment.ContentType.ToString();
stream[counter] = attachment.ContentStream;
attachment.Save(stream[counter]);
counter++;
}
return stream;