I\'m using the below sample code for writing and downloading a memory stream to a file in C#.
MemoryStream memoryStream = new MemoryStream(); TextWriter tex
You're using a very long way to convert string to bytes. Are you sure, that you need any streams? Why just don't use encoding?
Response.BinaryWrite(Encoding.UTF8.GetBytes("Something"))