I need to create an object of type System.IO.Stream
from the contents of a string
. This my string
is in a Resource.resx file. I retrieve it like this:
string xml = ResourcesRel.pt_BR;
I need to use a component that has a Load()
method. This method has two overloads: one that accepts the physical path of the file, and another that accepts Stream
.
Can you create a Stream
object from the string ?