G
Guest
Hello guys,
C#, VS2005: I'm trying to send an email containing an image.
I use "new AlternateView(imgStream, Mime.MediaTypeNames.Image.Gif);" to do
so, fine.
The problem is before this, when I try to create the Strem (imgStream) from
an embedded resource (myImage) I have in a resource file (myResources.resx).
I tried this code but it always returns "null", if you have any idea, will
be pretty welcome!
Stream imgStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream("myNameSpace.myLibrary.myResources.myImage");
Thanks.
C#, VS2005: I'm trying to send an email containing an image.
I use "new AlternateView(imgStream, Mime.MediaTypeNames.Image.Gif);" to do
so, fine.
The problem is before this, when I try to create the Strem (imgStream) from
an embedded resource (myImage) I have in a resource file (myResources.resx).
I tried this code but it always returns "null", if you have any idea, will
be pretty welcome!
Stream imgStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream("myNameSpace.myLibrary.myResources.myImage");
Thanks.