473,385 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Displaying an image on the C: drive?

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:Imagecontrol that displays the image. Is there
anyway to do this via the ImageURL property? Probably not but I thought I'd
ask.
Feb 9 '07 #1
2 2153
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)
Steve Hershoff wrote:
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:Imagecontrol that displays the image. Is there
anyway to do this via the ImageURL property? Probably not but I thought I'd
ask.

Feb 10 '07 #2
On Feb 10, 2:40 am, bruce barker <nos...@nospam.comwrote:
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)

....or use DynamicImage...!
(http://ajaxwidgets.com/AllControlsSa...amicImage.aspx)

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Feb 11 '07 #3

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

Similar topics

24
by: Mark Sargent | last post by:
Hi All, response.write FilePath gives this path, ImageName.jpeg but the image(s) doesn't display in the below code. What am I missing..? Cheers. <%Response.Write FilePath%> Original...
3
by: Christopher Mouton | last post by:
We regularly make drive images of our entire server and store it at a backup site. To be honest I have never fully understood how the imaging programs deal with open files. My question is will the...
3
by: Dennis Allen | last post by:
Hi. When I display a jpeg file in my browser, I see a toolbar in the upper left. It allows me to save the image, email it, etc. I'm using html code to display the image. Is there a way to...
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
3
by: Irfan Akram | last post by:
Hi Guys, I am having problems displaying an image from the database, that alreday has been uoploaded successfully. The image loads in correctly, but by default it is displayed on the whole...
6
by: Dustan | last post by:
Nobody answered last time. I guess they wanted me to give it a shot. Well, here is how I download the image (it's a class method): def download_image(self):...
3
by: bijaysalotry | last post by:
I have to display image on webpage. Images are stored on some other directory of the webserver not in the project drive and directory. When I develop it, it is working on developers machine but...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
11
by: Marge | last post by:
After importing a VB6 project into Express 2008 I have two gif's with transparency do not display correctly. In VB6 these pictures where used with the image object which had different properties...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.