Description:I am receiving a MemoryStream from a method and then I have to send it in email as attachment multiple times, i.e I have to utilise the same MemoryStream multiple time, it is working perfectly fine at first attempt but when I try to access it again it gives me error.
is there a way to store the MemoryStream separately for the purpose?
My current code looks like
MemoryStream memoryStream = getMemoryStream();
//following line works fine
SendEmail(memoryStream);
//but following line throws error
SendEmail(memoryStream);
Posted by: Umer khan | Posted on: Sep 11, 2018
3
Replied by: Tabish Usman | Replied on: Sep 11, 2018