472,353 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

How to access image into the server folder

(Type your message here)
I am using asp.net. I am not storing image in sql server.I storeall the image in one folder. I want to access image from thatfolder to my client machine. Images folder (\Data_Image) storein the same place into the application root (server machine)like c:\inetpub\wwwroot\mywebapp\Data_Image. I am using repetercontrol for show images. I already use server.Mappath but stillwhen I run my application on client machine it still look forthe image on client machine itself.
can anybody solve my problem.

--------------------------------
From: Manish Songar
Email: m_******@yahoo.com

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>rJScYp8+50mg+FWmS9fiow==</Id>
Nov 19 '05 #1
1 2247
I hate to tell you this, but your application root is not
"c:\inetpub\wwwroot\mywebapp\Data_Image". Your application is a web
application that resides in virtual directories. A URL points to a virtual
directory on the server, not a file location. If you use a file location,
that's what you're going to get. Take a look at the URL for your page. Do
you see any "C:" in there? A browser can display either local (to the local
file system) or remote (virtual directory via HTTP URL) files. How does the
browser know when they are local to the file system? When the URL is a file
path.

When building cars, it's best to know something about how the road works.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Manish Songar via .NET 247" <an*******@dotnet247.com> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl...
(Type your message here)
I am using asp.net. I am not storing image in sql server.I store all the
image in one folder. I want to access image from that folder to my client
machine. Images folder (\Data_Image) store in the same place into the
application root (server machine) like
c:\inetpub\wwwroot\mywebapp\Data_Image. I am using repeter control for show
images. I already use server.Mappath but still when I run my application on
client machine it still look for the image on client machine itself.
can anybody solve my problem.

--------------------------------
From: Manish Songar
Email: m_******@yahoo.com

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>rJScYp8+50mg+FWmS9fiow==</Id>
Nov 19 '05 #2

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

Similar topics

2
by: Ian B | last post by:
This is a basic question for anyone who knows what they're doing with web server admin so hopefully someone will be able to assist me here!... I...
1
by: Manish Songar via .NET 247 | last post by:
(Type your message here) I am using asp.net. I am not storing image in sql server.I store all the image in one folder. I want to access image from...
1
by: Manish Songar via .NET 247 | last post by:
I am using asp.net. I am not storing image in sql server.I store all the image in one folder. I want to access image from that folder to my client...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone ...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~...
3
by: Thomas Satzinger | last post by:
Hallo., i just encounterd a strange thing which i cannot resolve. I am saving a bitmap created in memory to the asp temp folder (asp.net 2.0)...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be...
6
by: Bob Alston | last post by:
I am looking for others who have built systems to scan documents, index them and then make them accessible from an Access database. My environment...
0
by: Mark Gold | last post by:
Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network,...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.