Memorystream.Read() always returns 0 bytesRead with empty byte[]

After creating and filling the MemoryStream, you need to set the read position to the begining like so:

memStream.Seek(0, SeekOrigin.Begin);

Leave a Comment