Load an Embbed Resource image

  • Thread starter Thread starter Fernando Lopes
  • Start date Start date
F

Fernando Lopes

Hey there!
Someone knows how can I get and show an embbed resource image?
I'm developing a web custom control and this control have some images and I
want to put all these images like a embbed resource.

Tks.
Fernando Lopes
 
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("YourImageNameHere")

Take the resultant stream and write it to Response.OutputStream. DOn't forget
to also change the ResponseContentType = "image/jpg" (or whatever it is).

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top