Pictures...

G

GTi

I want to include some pictures within my ASP.NET 2.0 project.
This pictures are compilled in my dll as resources.
How can I display this pictures on the web without copying
it to the fysical disk?

Table1.BackImageUrl = "RES:BACKIMAGE.GIF";

Regards
 
H

Hans Kesting

GTi said:
I want to include some pictures within my ASP.NET 2.0 project.
This pictures are compilled in my dll as resources.
How can I display this pictures on the web without copying
it to the fysical disk?

Table1.BackImageUrl = "RES:BACKIMAGE.GIF";

Regards

It's not possible to send that image inside the html file.

You would need some "image.aspx" or "image.ashx", that would accept
a parameter to identify the resource. Read the resource and send
it out with Response.BinaryWrite. No need to write intermediate files
to disk. The src-attribute of your <img> tag would point to this "image.aspx"/
"image.ashx" file.

Hans Kesting
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top