Load an Embbed Resource image

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
 
B

Brock Allen

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top