473,841 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\wwwr oot\mywebapp\Da ta_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+50m g+FWmS9fiow==</Id>
Nov 19 '05 #1
1 2308
I hate to tell you this, but your application root is not
"c:\inetpub\www root\mywebapp\D ata_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*******@dotn et247.com> wrote in message
news:Oi******** ******@TK2MSFTN GP09.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\wwwr oot\mywebapp\Da ta_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+50m g+FWmS9fiow==</Id>
Nov 19 '05 #2

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

Similar topics

2
2158
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 have a www based asp.net application which allows users to upload images (screen captures for fault reporting). These files get saved in the folder www.<domain>.co.uk/uploadedfiles/<filename>. I want to prevent public users from being able to see these uploaded files but I want to provide an...
1
1214
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 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 in client...
1
1953
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 machine. Images folder (\Orchid_Image) store in the same place into the application root (server machine) like c:\inetpub\wwwroot\OrchidDB\Orchid_Image. I am using repeter control for show images. I already use server.Mappath but still when I run my application in client machine it still look...
13
2362
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 here can point me somewhere that Google hasn't reached yet (I have gone all the way to page 50 on Google's results!!). Here are my requirements: • I have a DataGrid. Everything will be done from here. Everything. No exceptions. Everything will also be done in VB, without any code-behind to...
35
2679
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 (~ 10/12 Ko per image ) to save. Stan
3
10495
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) this works fine, and i don´t want to create an extra folder in my application, so i don´t need my people giving that folder the asp permissions. Ok, my JPG is in the temp folder.
9
3852
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 grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. unfortunately the servers web root www folder only allows READ and EXECUTE permissions, which makes it...
6
3883
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 is a nonprofit with about 20-25 case workers who use laptops. They have Access databases on their laptops and the data is replicated. The idea is that each case worker would scan their own documents, either remotely or back at the office. And NO I am not planning to store the scanned...
0
2345
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, the application and access database does not close. It seems to hang on the command. When we open the application an peruse the screens without opening up a report (using crystal reports), the application and access db closes fine. But as soon as we run a report and then close the report and...
0
9703
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9445
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7846
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7024
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5691
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4498
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 we have to send another system
2
4081
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3140
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.