Here is quick and easy way for converting byte array to MemoryStream (e.g. rendering image file) :

byte[] myByteArray = new byte[10];
myByteArray =BitConverter.GetBytes(201805978);
MemoryStream stream = new MemoryStream(
myByteArray);