I feel you could take pleasure in utilizing a MemoryStream. It is possible to fill it with the string bytes that you choose to get by using the GetBytes approach to the Encoding class.eight This is extremely compact syntax but it'll result in loads of allocations of byte[] so beware in large general performance code.Carter Lumber continues to be ca