Default image location

  • Thread starter Thread starter Saya
  • Start date Start date
S

Saya

Hello,

The IIS default location for images, usually is
'Inetpub/wwwroot/images'; currently I'm using:
'picWeb.Image=GetImage(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
 
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, 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
 
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 MyVirtualImageDirectory which was actually
pointing to somewhere like c:\myfiles\images

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.
 
THANKS Mark, for your elaborate answer.
Now the picture is completely clear for me! I'll start coding ...
:-))
Regards, Saya
----------------------------------------------------------------------------------------------
 
Back
Top