Displaying an image on the C: drive?

S

Steve Hershoff

I'd like to display a jpeg image sitting on the C: drive of my webserver.
The directory the image is under however, isn't beneath inetpub\wwwroot. Is
there a way for an aspx page to display an image located on a specific
folder on the hard drive?

Specifically, it's an <asp:Image> control that displays the image. Is there
anyway to do this via the ImageURL property? Probably not but I thought I'd
ask.
 
B

bruce barker

you have two options. first give asp.net read access to the images, then:

1) supply a asp.net page that returns the image
2) in iis create a vdir for the images under your aps.net vdir. (there
is no requirement that vdir be under inetpub)

-- bruce (sqlwork.com)
 

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,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top