Home > ASP.NET > Convert String to Stream and Stream to String in C#



Convert String to Stream and Stream to String in C#

In this article, we will explore how to convert String to Stream and Stream to String in C# with an example and sample code.


In this article, we will explore how to convert String to Stream and Stream to String in C# with an example and sample code. In this example, we have convert a C# String to byte array then pass that to the MemoryStream .

 

Required namespaces

We will need to use the following namespaces.

 

C#

 

Download


    Tags :
  • C#



Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*