473,503 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Load an Embbed Resource image

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
Nov 19 '05 #1
2 1713
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
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


Nov 19 '05 #2
You will want to accomplish this through a HttpHandler. This probably does
a little more than you are wanting, but this is a fuller explanation of
Brock's answer:

http://www.codeproject.com/aspnet/ressrvpage.asp


bill

"Fernando Lopes" <fernandomattarlopes@[remove]msn.com> wrote in message
news:u2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
48951
by: Ed Sutton | last post by:
I have been searching for how to get an icon resource and load it into an ImageList. I added an *.ico file to my project and set the files "Build Action" to "Embedded Resource". Is there any easy...
2
8982
by: Robert W. | last post by:
I want to create a special DLL that will contain only images. My application will then load these images when it needs them. So I searched MSDN and found this article:...
5
10189
by: Paul Cheetham | last post by:
Hi, I have some custom colour cursors which I have added to my c# project, and set them to be compiled as "Embedded Resource" It seems impossible to load a colour cursor using the standard...
0
1086
by: poojo hackma | last post by:
How can I load a System Resource image into a PictureBox with the CLR? Code: //----------------------------------------- System::Windows::Forms::PictureBox^ PictureBox1; System::IO::Stream^...
1
2101
by: Chukkalove | last post by:
I originally created several "copy" resource reader classes which worked great individually, but after I converted them into an parent class with children they no longer find the resources. Each...
8
12054
by: John Dunn | last post by:
Since currently we aren't allowed to have compiled XAML files embedded in C++ apps I'm using Markup::XamlReader::Load to dynamically load XAML files. This works perfectly fine with external files...
7
2090
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
2
6199
by: Yoavo | last post by:
Hi, In my application I need to load a bitmap which exists on an external DLL. How do I do it ? Yoav.
8
3008
by: john_woo | last post by:
Hi, I'm wondering whether it is possible that makes page load image only on demand. is there any idea? -- Thanks John
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.