S
sarran rangarajan
Hi,
i have collection of memorystream. I need to write (generate) an image
based on data that is present in all memorystreams.
string p = string.Format(@"C:\temp\{0}-Page.gif", messageId);
FileStream fs = new FileStream(p, FileMode.Append);
foreach (MemoryStream ms in m_streams)
{
byte[] image = ms.ToArray();
fs.Write(image, 0, image.Length);
ms.Position = 0;
}
I have 3 memory streams, but my image has only the first stream
contents.
i have collection of memorystream. I need to write (generate) an image
based on data that is present in all memorystreams.
string p = string.Format(@"C:\temp\{0}-Page.gif", messageId);
FileStream fs = new FileStream(p, FileMode.Append);
foreach (MemoryStream ms in m_streams)
{
byte[] image = ms.ToArray();
fs.Write(image, 0, image.Length);
ms.Position = 0;
}
I have 3 memory streams, but my image has only the first stream
contents.