I imported a PNG file into Visual Studio 2013. A MIME mail library we're using adds visuals to HTML mail with a function that expects a byte array parameter. How to get the object returned by ResourceManager into a byte array?
ResourceManager rm;
rm = new ResourceManager("Foo.Properties.Resources", typeof(MYFORM).Assembly);
var obj = rm.GetObject("Logo");
When I try to use the .GetStream
method, error says the object is not a stream, and to use .GetObject
instead.