Author: wilson777 | Posted on: 11/2/2009 4:44:36 PM | Views : 924

Hi there,
Modifying some existing code that accesses an image embedded in a DLL:


System.IO.Stream stream = GetType().Assembly.GetManifestResourceStream("LibPlan.logo.jpg");


I have an image outside this DLL that I want to use instead and don't want to add the image to the image to the DLL (as it is third party).


Does anyone know how I can create a System.IO.Stream from an image that just sits in my website directory structure?


Thinking something like: Stream.CreateFromImage("newimage.jpg") or whatever.


Thanks!


Wilson.


...

Go to the complete details ...