473,809 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Default image location

Hello,

The IIS default location for images, usually is
'Inetpub/wwwroot/images'; currently I'm using:
'picWeb.Image=G etImage(IMG_URL +filename)', where
IMG_URL="http://ipadress/images", to reach my images in my web service
application.
Is there a command available to get the images from a different
location in the server machine, for example at another logical drive?

Thanks in advance.
Saya
Nov 17 '05 #1
4 4624
Hi,

You have to create a virtual directory, which is only a link to the real
folder. then you reference the image has http://ip/virtual_directory/
You do so frmo the IIS admin.

Btw, there is no "default" place to put the images in.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Saya" <sa*********@ho tmail.com> wrote in message
news:kh******** *************** *********@4ax.c om...
Hello,

The IIS default location for images, usually is
'Inetpub/wwwroot/images'; currently I'm using:
'picWeb.Image=G etImage(IMG_URL +filename)', where
IMG_URL="http://ipadress/images", to reach my images in my web service
application.
Is there a command available to get the images from a different
location in the server machine, for example at another logical drive?

Thanks in advance.
Saya

Nov 17 '05 #2
Ignacio, thanks for the reply. I'll try it out.

Got an additional question (haven't got the IIS manual at this
moment): in doing so, does it mean that *all* image activities from
this moment on (after making the IIS-admin move) are referred to this
virtual dir, making the 'Inetpub/wwwroot/images' obsolete, or is it a
parallel path? I can then choose in which location I can put the
images?
Hope you understand my question ...., 'found it diffficult to
formulate ;-)

Greetz, Saya
---------------------------------------------------------------------------------------
On Tue, 19 Jul 2005 14:43:57 -0400, "Ignacio Machin \( .NET/ C# MVP
\)" <ignacio.mach in AT dot.state.fl.us > wrote:
Hi,

You have to create a virtual directory, which is only a link to the real
folder. then you reference the image has http://ip/virtual_directory/
You do so frmo the IIS admin.

Btw, there is no "default" place to put the images in.
cheers,


Nov 17 '05 #3
Hi Saya,
after creating a virtual directory which points to the image directory
your inetpub/wwwroot/images directory will still be available from the URL
i.e. http://ip/images

The virtual directory is just like a desktop shortcut for a file, it just
points to somewhere else like Ignacip said, so you could create a virtual
directory in IIS Admin called MyVirtualImageD irectory which was actually
pointing to somewhere like c:\myfiles\imag es

you will then access http://ip/MyVirtualImagesDirectory which will cause the
server to fetch items from the location on disk.

You can have as many virtual directories as you want at any level of the
naming tree, as well as leaving your old images directory in place if you
want.

Hope that helps.
Mark.

"Saya" wrote:
Ignacio, thanks for the reply. I'll try it out.

Got an additional question (haven't got the IIS manual at this
moment): in doing so, does it mean that *all* image activities from
this moment on (after making the IIS-admin move) are referred to this
virtual dir, making the 'Inetpub/wwwroot/images' obsolete, or is it a
parallel path? I can then choose in which location I can put the
images?
Hope you understand my question ...., 'found it diffficult to
formulate ;-)

Greetz, Saya
---------------------------------------------------------------------------------------
On Tue, 19 Jul 2005 14:43:57 -0400, "Ignacio Machin \( .NET/ C# MVP
\)" <ignacio.mach in AT dot.state.fl.us > wrote:
Hi,

You have to create a virtual directory, which is only a link to the real
folder. then you reference the image has http://ip/virtual_directory/
You do so frmo the IIS admin.

Btw, there is no "default" place to put the images in.
cheers,


Nov 17 '05 #4
THANKS Mark, for your elaborate answer.
Now the picture is completely clear for me! I'll start coding ...
:-))
Regards, Saya
----------------------------------------------------------------------------------------------
On Tue, 19 Jul 2005 20:27:03 -0700, "Mark R. Dawson"
<Ma*********@di scussions.micro soft.com> wrote:
Hi Saya,
after creating a virtual directory which points to the image directory
your inetpub/wwwroot/images directory will still be available from the URL
i.e. http://ip/images

The virtual directory is just like a desktop shortcut for a file, it just
points to somewhere else like Ignacip said, so you could create a virtual
directory in IIS Admin called MyVirtualImageD irectory which was actually
pointing to somewhere like c:\myfiles\imag es

you will then access http://ip/MyVirtualImagesDirectory which will cause the
server to fetch items from the location on disk.

You can have as many virtual directories as you want at any level of the
naming tree, as well as leaving your old images directory in place if you
want.

Hope that helps.
Mark.

"Saya" wrote:
Ignacio, thanks for the reply. I'll try it out.

Got an additional question (haven't got the IIS manual at this
moment): in doing so, does it mean that *all* image activities from
this moment on (after making the IIS-admin move) are referred to this
virtual dir, making the 'Inetpub/wwwroot/images' obsolete, or is it a
parallel path? I can then choose in which location I can put the
images?
Hope you understand my question ...., 'found it diffficult to
formulate ;-)

Greetz, Saya
---------------------------------------------------------------------------------------
On Tue, 19 Jul 2005 14:43:57 -0400, "Ignacio Machin \( .NET/ C# MVP
\)" <ignacio.mach in AT dot.state.fl.us > wrote:
>Hi,
>
>You have to create a virtual directory, which is only a link to the real
>folder. then you reference the image has http://ip/virtual_directory/
>You do so frmo the IIS admin.
>
>Btw, there is no "default" place to put the images in.
>
>
>cheers,



Nov 17 '05 #5

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

Similar topics

7
3404
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
0
1914
by: Deepak C.G via .NET 247 | last post by:
I want to dispose the image object in my child form, unless I won't dispose this object i can't delete the image file in my folder. I get this error in MDIparent form "An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll" "Additional information: Invalid parameter used." Here is my code:-
0
1076
by: zxo102 | last post by:
Hi everyone, As shown in the code below (modified based on the Image.py in wxpython demo), an image is created at location 1: (50,10) with rotated angle 1.12. Now, suppose I got another set of new data, I want to move the image to location 2: (166,400) with rotated angle 1.5. case 1: if I use "wx.StaticBitmap(panel, -1, bmp2, (166, 400), (bmp2.GetWidth(), bmp2.GetHeight()))", everything is fine but I don't know how to delete the...
3
7923
by: Paul Cheetham | last post by:
Hi, I have an application that will display user-defined images in some asp:image controls. (sets the ImageURL, and is always built from the site root) The problem comes when the images specified do not exist, as it displays a red cross and the alternate text. What I would like to do is display a default image instead.
7
3952
by: krishnasamy | last post by:
Hi, I have a sq.h include file which containing following code, struct FRSDK_SHARED SampleQuality { SampleQuality( bool enrollmentOk, bool verificationOk, float q, const std::string& hint); const bool goodForEnrollment; const bool goodForVerification;
7
17060
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir = "photo/thumbs/"; // Path To Thumbnails Directory $twidth = "125"; // Maximum Width For Thumbnail Images
10
7083
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for only small sized iamages.. for eg. resizing takes place for 70 kb sized images but fails for 600kb or more.. my code is below..
1
4888
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop program,which can upload many file in folder.problem is,am unable to save my file name in to database.because i used same name for all input file type as file. i dont know get name of file.below i presented my coding for ur view.fed up with my coding..pls...
0
10635
Oralloy
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...
0
10376
jinu1996
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...
1
10378
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,...
0
10115
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
9198
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...
0
6881
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
5550
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
4332
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
3
3013
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.