Hi,
I have an image which resides on a different server...on data server. I am
developing on Development server. When I use the image URLin my ASP.Net web
page as xxx.xxx.x.xx\\S HARE\GRAPHICS\i mage.jpg , that image shows up in the
development server but when I use my local machine for vewing that image , it
doesnt show up...Why is that?
--
pmud 4 2692
Because a URL is not UNC. You need to either create a virtual directory
that points to that location, or us File IO to get the image.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"pmud" <pm**@discussio ns.microsoft.co m> wrote in message
news:B2******** *************** ***********@mic rosoft.com... Hi,
I have an image which resides on a different server...on data server. I am developing on Development server. When I use the image URLin my ASP.Net web page as xxx.xxx.x.xx\\S HARE\GRAPHICS\i mage.jpg , that image shows up in the development server but when I use my local machine for vewing that image , it doesnt show up...Why is that? -- pmud
Hi Kevin,
How to go create a virtual directory which points to the location of the
image and how to create a file IO to get that image? It might be a very basic
question, but I would be glad if you could help.
Thanks
"pmud" wrote: Hi,
I have an image which resides on a different server...on data server. I am developing on Development server. When I use the image URLin my ASP.Net web page as xxx.xxx.x.xx\\S HARE\GRAPHICS\i mage.jpg , that image shows up in the development server but when I use my local machine for vewing that image , it doesnt show up...Why is that? -- pmud
Hi pmud,
Well, you want to do one OR the other, NOT both. The first option would be
done through Internet Information Services Admin. It might be best to ask a
network administrator to do that for you. A virtual directory is simply a
web directory that points to a real directory somewhere, not necessarily in
the web server's folders.
The second option is fairly self-explanatory. You use System.IO classes to
open the file, and write it to the Response.Output Stream. Your app will have
to have permission to open the file.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"pmud" <pm**@discussio ns.microsoft.co m> wrote in message
news:5B******** *************** ***********@mic rosoft.com... Hi Kevin,
How to go create a virtual directory which points to the location of the image and how to create a file IO to get that image? It might be a very basic question, but I would be glad if you could help.
Thanks
"pmud" wrote:
Hi,
I have an image which resides on a different server...on data server. I am developing on Development server. When I use the image URLin my ASP.Net web page as xxx.xxx.x.xx\\S HARE\GRAPHICS\i mage.jpg , that image shows up in the development server but when I use my local machine for vewing that image , it doesnt show up...Why is that? -- pmud
Hi Kevin,
In IIS I browsed to Default Websites , then in my website folder called APP,
I right clicked & created a new Virtual Directory which points to
C:/Inetpub/wwwroot/APP . Inside APP i created an image folder which contains
the image. But when i see it from my local machine, with the URL for the site
as :
http//xxx.xx.x.x/APP/Default.aspx , i still cant see the image, or when I
use the name of the Virual directory in the path, as
http//xxx.xx.x.x/VirtualDir/APP/Default.aspx , i still cant see the image
displayed.
Did I do it the right way? If yes, then why is it not displaying?
"Kevin Spencer" wrote: Hi pmud,
Well, you want to do one OR the other, NOT both. The first option would be done through Internet Information Services Admin. It might be best to ask a network administrator to do that for you. A virtual directory is simply a web directory that points to a real directory somewhere, not necessarily in the web server's folders.
The second option is fairly self-explanatory. You use System.IO classes to open the file, and write it to the Response.Output Stream. Your app will have to have permission to open the file.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Neither a follower nor a lender be.
"pmud" <pm**@discussio ns.microsoft.co m> wrote in message news:5B******** *************** ***********@mic rosoft.com... Hi Kevin,
How to go create a virtual directory which points to the location of the image and how to create a file IO to get that image? It might be a very basic question, but I would be glad if you could help.
Thanks
"pmud" wrote:
Hi,
I have an image which resides on a different server...on data server. I am developing on Development server. When I use the image URLin my ASP.Net web page as xxx.xxx.x.xx\\S HARE\GRAPHICS\i mage.jpg , that image shows up in the development server but when I use my local machine for vewing that image , it doesnt show up...Why is that? -- pmud This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tjerk |
last post by:
Hello all,
I have the script below to change an image depending on the date upto
january it worked fine but then it just stopped working does anybody have an
idea how I can make it work again or why it doesn't work?
Thanks in advance
Tjerk
|
by: ken |
last post by:
I had to reinstall Windows 2000 Pro and of course Access 2000. I HAD
each record displaying a photo but now it does not show them. The
WEIRD thing is that when I upload the database to my website...the
image shows up! Is there a setting in Access that I need to chnage
because of the reinstall?
Thanks.
Ken
|
by: Al Reid |
last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in
viewer? If so, could someone tell me how to do it?
TIA
--
Al Reid
|
by: pmud |
last post by:
Hi,
I am designing a simple ASP.NET web page. I have an image button. What I
want to do is: when the cursor is over the image button, a drop down meny
should display. This menu should have tabs which are images. What can be the
C# code for this.
Please help.
Thanks
|
by: lgbjr |
last post by:
Hello All,
I¡¯m using a context menu associated with some pictureboxes to provide
copy/paste functionality. Copying the image to the clipboard was easy. But
pasting an image from the clipboard is proving to be more difficult. These
pictureboxes are bound to an AccessDB. If the user wants to add an image,
they select an image using an OpenFileDialog:
Dim result As DialogResult = Pic_Sel.ShowDialog()
If (result = DialogResult.OK) Then
| |
by: CD |
last post by:
An application is logging faxes sent in SQL2000 image column type. I have
found code on the net but what it is doing is prompting to save to local
which is fine for single page image. Not good for multiple page faxes. I
have not been able to locate an example to load in the browser or how to
handle multiple image in the one column.
1) Ideally it would be nice to display back in the browser since some may be
multiple images. I am not...
|
by: ljuljacka |
last post by:
I'm trying to display resized images. Locations of images are fetched from
database. The problem is that with the following code, I get only the first
image displayed:
<?php
header('Content-type: image/jpeg');
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
|
by: Jeff |
last post by:
hi
asp.net 2.0
I have a image (.jpeg) stored in sql server 2005 and now I want to display
it on a webpage.
So I created a webpage (Image.aspx) which just writes the buffer data to the
Response object.
On Default.aspx I use this Image.aspx for displaying the image, but no image
|
by: brijesh1234 |
last post by:
dear Sir/madam
I am getting a problem while displaying a image from database
Database : MSSQL2000
I have a table named “Image” having following fields as
ImageId int
Image Image
|
by: mvijayrkumar |
last post by:
Hi to all....
Guys pls help me.....
I have an image issue in RLDC while hosting my project on server.The image displays or works fine with the local system.But when hosted on server,both the images(One coming from DataSet and another from my project image folder) not displaying.
Both images are having Type property External and the Values are given correspondingly.ie The One coming from Image Folder;using the Report Parameter ,the...
|
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,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |