Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# string to memorystream

public static MemoryStream GenerateStreamFromString(string value)
{
    return new MemoryStream(Encoding.UTF8.GetBytes(value ?? ""));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #memorystream
ADD COMMENT
Topic
Name
1+6 =